Thursday, June 26, 2008

Argument list too long

Ever tried to do a "rm *" on a directory and got the error "argument list too long"? Use xargs and chain the commands!
ls | xargs rm

Found this gem here: http://www.shell-fu.org/lister.php?id=251

No comments: