Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: script within find



Chris Johnson sent me the following 1.0K:

> Alexy Khrabrov sent me the following 2.2K:
>
> > The command to do a single conversion is
> > 
> > convert -quality 100 dir1/A.tif /jpgs/dir1/A.jpg
> 
> I think it'd be simpler to do something like:
> 
>    $ cp -r dir1 /jpgs
>    $ mogrify -format jpg /jpgs/**/*.tif

Sorry.  The conversion isn't done in place.  You'll end up with *.tifs
and *.jpgs in the same directory under /jpgs.  You'll want to issue

   $ rm /jpgs/**/*.tif

to get rid of the copies of the originals, or operate in the original
hierarchy and do a selective copy.

-- 
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson



Messages sorted by: Reverse Date, Date, Thread, Author