[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] echo filename (without extension)

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.

Ale mailing list
Ale at ale.org