[ale] Embarassing script question
Fletch
fletch at phydeaux.org
Wed Aug 6 08:59:33 EDT 2003
>>>>> "Matthew" == Matthew Brown <matthew.brown at cordata.com> writes:
[...]
Matthew> #!/bin/sh
Matthew> bmptoppm $1 | ppmtojpeg > $1.jpg
Matthew> Now the annoyances are as follows: 1. The filename ends
Matthew> up something like Pic001.bmp.jpg. 2. I can't find a way
Matthew> to handle odd filenames, like "PC Beach001.bmp" and
Matthew> "LasVegas&JumpRope001.bmp".
new="${old/.bmp}"
bmptoppm "$1" | ppmtojpeg > "$new"
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 294-0820 (m) | scary questions." -- Jules =(___)=
| U
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list