CartMetrix - Do you know yours?

« Hack to Open Popup Pages in Main Window | Home | More Apache 2.2 Mod_Auth_MySQL Issues »

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

Try this:

for x in *; do rm -f $x; done

Or:

find . -name '*' -print0 | xargs -0 rm

Popularity: 14%

Trackback:

Related Posts

5 Responses to “Argument list too long - Workarounds”

  1. Chris said:

    Much better than the for-loop:

    ls | while read f; do rm $f; done

  2. damonp said:

    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).

    find . -mtime 14 -print0 | xargs -0 rm
  3. Buy prozac online free shipping cheap. said:

    Buy no prescription prozac 2006.

    Buy prozac online free shipping cheap. Buy prozac phentermine online free shipping cheap.

  4. Paxil buy. said:

    Buy paxil online.

    Buy paxil cheap. Buy paxil without prescription. Buy paxil online.

  5. Fioricet online. said:

    Fioricet online.

    Online pharmacies that offer fioricet. Online fioricet w codeine medical consultation. Fioricet online. Generic fioricet online.

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2008 damonparker.org. all rights reserved.

Close
E-mail It