#!/bin/sh # # file: filext # type: sh script # functionality: gives file extension by file name # created: pasha apr 30 1998 # pending: not correctly handle things like 1.2.3 # #echo $1 | awk 'BEGIN{FS="."} {print ($2)}' echo $1 | sed 's/^.*\.//g'