Friday, March 28, 2008

HowToUnix: Problem in file removal -sh: /bin/rm: Argument list too long

Error:-
Was getting -sh: /bin/rm: Argument list too long error while trying to delete more than 60K files.

Resolution:-
find . -name "*.abc" -exec rm {} \;
Which will remove all files ending with 'abc'.
Check the following link
Argument list too long

Labels:

0 Comments:

Post a Comment

<< Home