[NTLUG:Discuss] shrink images globally

Paul Ingendorf pauldy at wantek.net
Sun Dec 5 04:12:34 CST 2004


Good catch, just lazyness on my part.  I use the little file loop for lots
of stuff so it is a useful thing to do never used the exec portion of find
though.  I'm going to have to give that a try.

-----Original Message-----
From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
Behalf Of Steve Baker
Sent: Saturday, December 04, 2004 8:26 PM
To: NTLUG Discussion List
Subject: Re: [NTLUG:Discuss] shrink images globally


Rick Cook wrote:
> On Saturday 04 December 2004 17:03, Paul Ingendorf wrote:
>
>>for imageFile in `find ./ -name *.jpg`
>>do
>>mogrify -antialias -scale 512x348 $imageFile
>>done
>>
>
>
> Or =>
>
> find ./ -name *.jpg -exec mogrify -antialias -scale 512x348 {} \;
                 ^
                Ha!
                You forgot the '\' too!

*.jpg is expanded by the current shell in the current directory.
\*.jpg is expanded by 'find' as it works it's way through the
heirarchy.

---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1 at airmail.net>    WorkEmail: <sjbaker at link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net    http://tuxaqfh.sf.net
            http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----


_______________________________________________
https://ntlug.org/mailman/listinfo/discuss




More information about the Discuss mailing list