[ale] echo filename (without extension)
Michael D. Hirsch
mhirsch at nubridges.com
Tue Dec 17 17:19:38 EST 2002
On Tuesday 17 December 2002 05:03 pm, Christopher Bergeron wrote:
> > echo `basename $i`
>
> hrm, that one doesn't seem to work:
>
> [root at www pictures]$ echo `basename Mvc-382f.jpg`
> Mvc-382f.jpg
if you know it ends in ".jpg" you can do
basename $i .jpg
But if you don't then you need to be trikier with regexps.
Michael
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list