Ever tried to delete 100,000 files with rm? Got the following error message?
/bin/rm: Argument list too long.
Heh yeah me too.
Here is the solution: (lets say you want to delete all files that end with .mbox)
find . -name ‘*.mbox’ -print0 | xargs -0 rm
Recently my mail server went out of control, the end result, thousands of duplicate emails.
![[del.icio.us]](http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png)
![[Reddit]](http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png)
![[Slashdot]](http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png)
![[StumbleUpon]](http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png)
![[Windows Live]](http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png)
Entries (RSS)