shell scripting style question

Price, Erik eprice at ptc.com
Thu Dec 5 07:36:46 EST 2002


> -----Original Message-----
> From: Kevin D. Clark [mailto:kclark at cetaceannetworks.com]
> Sent: Wednesday, December 04, 2002 5:31 PM
> To: Charles Farinella
> Cc: gnhlug-discuss at mail.gnhlug.org
> Subject: Re: convert large number of graphics
> 
 [...]
> 
> 
> for A in `find /yourdir \( -name \*.bmp -o -name \*.BMP \) 
> -print` ; do
>   bmptoppm $A | ppmtojpeg >`echo $A | sed 's/\.bmp/.jpg/i'`
> done

Just out of curiosity, is the only difference between using
"find" and "ls -R" (in this particular case) that you can
use more than one glob argument?


Erik



More information about the gnhlug-discuss mailing list