That works GREAT!!! 

Thanks a ton!

Is there a command line perl resource that you or anyone else knows of?

Brock

On 5/17/05, Steven Cayford <strayf at freeshell.org> wrote:
> 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
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>