[Linux-disciples] delete a whole lot of files

Karl Sokol revkarl at gmail.com
Wed Feb 7 13:35:57 EST 2007


My fault.  I obviously don't need it to look into .aptitude.  Why is it
trying to anyhow?  I definitely do not want to recursively delete all jpegs.

church at ubuntu:~$ find /home/church -iname '*.jpg' -print0 |xargs -i0 rm '{}'
find: /home/church/.aptitude: Permission denied
xargs: argument line too long
church at ubuntu:~$ sudo find /home/church -iname '*.jpg' -print0 |xargs -i0 rm
'{}'
Password:
xargs: argument line too long
church at ubuntu:~$ sudo sh -c "find /home/church -iname '*.jpg' -print0 |xargs
-i0 rm '{}'"
xargs: argument line too long
church at ubuntu:~$


On 2/7/07, Stephen R Laniel <steve at laniels.org> wrote:
>
> 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
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFFyhqyHa1lzVGot+YRAkemAJ9+BfZX0Zyv3TPpPk9pxc4FQvD8TgCfcYql
> I8AYjnUj2RB4Y8s8HFHV0qM=
> =aq7Q
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
>
>


-- 
Grace and Peace,

Rev. Karl Sokol
Franklin Grove UMC
211 N. Spring
Franklin Grove, IL 61031

If you have a talent, that's God's gift to you. If you use that talent,
that's your gift to God.

                     --
Red Skelton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20070207/66d928a0/attachment.htm


More information about the Linux-disciples mailing list