; I have this from time to time and I think the way I did it is remove the
; files 1 at a time using this command:
; 
; find /bad/directory/* -print -exec rm -fr {} \;

that's horribly inefficient (assuming it works), surely if the problem
is a limitation on argv, then wouldn't your /bad/directory/* above
overflow as well? It was for this reason that I didn't suggest
something like

cd $dir && echo * | xargs -n 400 rm -f

which would certainly be preferable to unlinking one file at a time.
Then you would probably get everything in two separate invocations.

r.


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to