[ale] echo filename (without extension)

Christopher Bergeron christopher at bergeron.com
Tue Dec 17 16:53:21 EST 2002


Here's another quick one ...  How can I echo just the filename and not 
the extension in this script?

for i in `\ls M*`; do
  echo $i
done

I'd like to just echo everything up to the .jpg

Also: does anyone have a quick one or two liner that can convert all 
filenames in a dir to lowercase?

If you haven't guessed, I'm just scripting my camera to upload pics, 
create thumbnails, and insert them into a Mysql DB.

I appreciate any suggestions.

Thanks,
CB

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list