On Tue, May 17, 2005 at 08:29:59PM -0500, Brock Noland wrote:
> 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?
> [...]
> Any ideas?

How about...

ls | perl -p -e 's/^.*\.(.*)$/$1/'

except if there's no extension.

-Steve