[Linux-disciples] delete a whole lot of files

Adam Rosi-Kessel adam at rosi-kessel.org
Wed Feb 7 16:18:28 EST 2007


On 2/7/2007 4:13 PM, Karl Sokol wrote:
> Thanks, but I am still not getting very far.  I would just delete the
> files in chunks with nautilus, but it takes up so much cpu to open
> /home/church that it all but crashes.
> church at ubuntu:~$ find /home/church -iname '*.jpg' -print0 |xargs -i0
> echo rm "{}"
> find: /home/church/.aptitude: Permission denied
> xargs: argument line too long
> church at ubuntu:~$ find /home/church/ -iname '*.jpg' \ -exec cp '{}'
> /home/church/jpg ';'
> find: paths must precede expression
> Usage: find [-H] [-L] [-P] [path...] [expression]
> church at ubuntu:~$

I think your problem there may be a spurious backslash. I had a
backslash at the end of a line in my example because it spanned two
lines, but if you put the whole 'find' command on one line, you don't
need it.

If that's not the problem, I'm at a bit of a loss.


More information about the Linux-disciples mailing list