[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Embarassing script question
- Subject: [ale] Embarassing script question
- From: fletch at phydeaux.org (Fletch)
- Date: 06 Aug 2003 08:59:33 -0400
>>>>> "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