[lug] simple script
Taz
feenix at ticnet.com
Mon Oct 8 19:17:00 MDT 2001
Hi all:
Here an easy one. I have a small script I use to convert files from
.bmp to .jpg It works just great except for one small thing. The
filenames starts out as:
whatever.bmp
then after conversion is
whatever.bmp.jpg
instead of whatever.jpg
How do I make the filename simply "whatever.jpg" Here is the script:
for i in *.bmp
do
echo "converting " $i " to .jpg format"
convert $i $i.jpg
done
--
"Yet they are mistaken, they will be exposed, and they will discover what
others in the past have learned; Those who make war against the United
States have chosen their own destruction."
G. Bush Jr. Sept '01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20011008/7e4df585/attachment.html>
More information about the LUG
mailing list