If you have a ton of files in a directory and you need to remove them, but rm says that the "argument list [is] too long", just use find and xargs:
find . -name 'filename*' | xargs rm -vf
If you have a ton of files in a directory and you need to remove them, but rm says that the "argument list [is] too long", just use find and xargs:
find . -name 'filename*' | xargs rm -vf
RSS feed for comments on this post , TrackBack URI
Copyright 2010 Major Hayden. Powered by WordPress. R755 theme by varometro.
What if the find command says the "Argument list [is] too long"?!