Hello all!

I have a script which needs the extension of a file. The problem I am
having is how do I get the chars at the end of a filename after the
LAST period?

For example:

brock at brockwork backups $ ls -1
another.tar.gz
mydocs-backup-2005-05-17.tgz
brock at brockwork backups $ ls | awk -F. '{ print $2}'
tar
tgz
brock at brockwork backups $

Any ideas?