12/28/2006
Argument list too long - Workarounds
Trying to clean out my SPAM folder:
[root@atlas cur]# rm -f *
-bash: /bin/rm: Argument list too long
-bash: /bin/rm: Argument list too long
Try this:
for x in *; do rm -f $x; done
Or:
find . -name '*' -print0 | xargs -0 rm
Popularity: 14%



January 7th, 2007 at 3:24 pm
Much better than the for-loop:
ls | while read f; do rm $f; done
January 22nd, 2007 at 12:41 pm
The ls way is clean, but I like using find so you can only select certain messages. With my SPAM mailbox, I can delete messages that are older than a specified period of time (ie. 14 days below).
April 30th, 2008 at 10:27 pm
Buy no prescription prozac 2006.
Buy prozac online free shipping cheap. Buy prozac phentermine online free shipping cheap.
May 1st, 2008 at 12:53 pm
Buy paxil online.
Buy paxil cheap. Buy paxil without prescription. Buy paxil online.
May 2nd, 2008 at 12:54 am
Fioricet online.
Online pharmacies that offer fioricet. Online fioricet w codeine medical consultation. Fioricet online. Generic fioricet online.