[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] echo filename (without extension)
- Subject: [ale] echo filename (without extension)
- From: mhirsch at nubridges.com (Michael D. Hirsch)
- Date: Tue, 17 Dec 2002 17:19:38 -0500
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