View Single Post
  #4  
Old September 30th, 2002, 11:52 PM
d1taylor d1taylor is offline
Writer, et. al.
 
Join Date: Aug 2002
Location: Boulder, CO
Posts: 47
d1taylor is on a distinguished road
Smile try this script

Try this:
Code:
#!/bin/sh

for filename in *.gif
do
   newfname="`echo $filename | sed 's/.gif/.jpg/'`"
   echo "renaming $filename to $newfname"
   mv $filename $newfname
done

exit 0
There's more we can do with this, but this'll suffice for now, I hope. :-)
__________________
Author, Learning Unix for Mac OS X (O'Reilly), among other books.
Check out http://books.intuitive.com/
Reply With Quote