Running a command on all file occurences in a directory tree
Francis K Shim
francis.shim-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Sat Oct 9 18:33:22 UTC 2004
How about
find . -name *.jpg -exec convert {} -resize 425 {} \;
Regards,
Frank
On Fri, 2004-10-08 at 17:53 -0400, William O'Higgins wrote:
> What I want to do is resize all of the JPGs in a long and ramified
> directory tree. I figured something like:
>
> find . -name *.jpg
>
> in the top of the tree would do the trick for hitting all of the jpgs,
> but I don't know how to take the output of the above and have it do
> this:
>
> convert $FILENAME -resize 425 $FILENAME
>
> Basically, I don't know bash very well and need help with the syntax.
> Thanks.
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list