[ale] Embarassing script question

Jonathan Glass jonathan.glass at ibb.gatech.edu
Wed Aug 6 08:37:18 EDT 2003


info|man basename

On Wed, 2003-08-06 at 08:12, Matthew Brown wrote:
> Here's a bash scripting question I should problem already know the
> answer to:
> 
> I wrote a tiny script yesterday to convert a slew of photos from BMP
> to JPG.  The qquickest route i found was through the PPM format, so
> the current script looks like:
> 
> #!/bin/sh
> bmptoppm $1 | ppmtojpeg > $1.jpg
> 
> Now the annoyances are as follows:
> 1.    The filename ends up something like Pic001.bmp.jpg.
> 2.    I can't find a way to handle odd filenames, like "PC
> Beach001.bmp" and "LasVegas&JumpRope001.bmp".
> 
> Any takers?
> 
> BTW, I don't have any idea how they got such odd names.
> 
> -- 
> Best regards,
> 
> Matthew Brown
> CorData, Inc.
> Office:	770-795-0089
> Fax:	404-806-4855
-- 
Jonathan Glass <jonathan.glass at ibb.gatech.edu>


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





More information about the Ale mailing list