/bin/rm: Argument list too long
2 May 2009 • Comments
Went to clean up a cache directory I was using for development tonight and realized I had about 6000 images in it. Running:
rm *
resulted in:
-bash: /bin/rm: Argument list too long
So I did some digging and found this little gem:
ls|xargs rm
Simple enough I should'a thought of it myself.
blog comments powered by Disqus