[Linux-disciples] delete a whole lot of files

Stephen R Laniel steve at laniels.org
Wed Feb 7 13:26:01 EST 2007


On Wed, Feb 07, 2007 at 01:25:12PM -0500, Adam Rosi-Kessel wrote:
> I would suggest the slight modification:
> 
> find /home/church -iname '*.jpg' -print0 |xargs -i0 rm '{}'
> 
> although in this case I don't think it would make any difference.

Right. In most cases you'll have Problems if you try to do

find [some args] -print0 |xargs -0 someCommand

without specifying how the arguments fit in (especially
'mv'). In the special case of rm, though, I find some nice
aesthetic purity in leaving off the '{}'.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20070207/557be779/attachment-0001.pgp


More information about the Linux-disciples mailing list