#11:29 03/08/2015
When I am trying to delete all pdf's together using below command:
#rm -f *.pdf
I am getting the following error:
/bin/rm: cannot execute [Argument list too long]
#######
he reason this occurs is because bash actually expands the asterisk to every matching file, producing a very long command line.
Try this:
#find . -name "*.pdf" -print0 | xargs -0 rm
#Source: http://stackoverflow.com/questions/11289551/argument-list-too-long-error-for-rm-cp-mv-commands
No comments:
Post a Comment