[Linux-disciples] delete a whole lot of files
Karl Sokol
revkarl at gmail.com
Wed Feb 7 13:04:44 EST 2007
I used recoverjpeg to attempt to find some deleted pictures. Unfortunately,
it spit 134,000 files into my home directory, making it practically
useless. Doing a more careful reading of the man pages after the fact
showed that I should have limited the search to a certain size file, so,
want to delete all of the jpegs in my home directory and try again. It would
be even nicer if I could just delete those jpgs under 500kb.
church at ubuntu:~$ rm /home/church/*.jpg /home/church/pics
bash: /bin/rm: Argument list too long
church at ubuntu:~$ rm /home/church/*9.jpg /home/church/pics
bash: /bin/rm: Argument list too long
church at ubuntu:~$ ls -l *.jpg | xargs /bin/rm -f
bash: /bin/ls: Argument list too long
church at ubuntu:~$ ls -l *9.jpg | xargs /bin/rm -f
bash: /bin/ls: Argument list too long
Any ideas?
--
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/ecd66837/attachment.html
More information about the Linux-disciples
mailing list