[Linux-disciples] delete a whole lot of files

Stephen R Laniel steve at laniels.org
Wed Feb 7 13:30:11 EST 2007


On Wed, Feb 07, 2007 at 12:26:48PM -0600, Karl Sokol wrote:
> church at ubuntu:~$ sudo find /home/church -iname '*.jpg' -print0 |xargs -i0 rm '
> {}'
> Password:
> xargs: argument line too long

It's likely that the sudo is messing you up. Do you need to
be running sudo? If you don't, take it out; if you do, do

sudo sh -c "find /home/church -iname '*.jpg' -print0 |xargs -i0 rm '{}'"

-- 
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/f73eadc0/attachment.pgp


More information about the Linux-disciples mailing list