; >cd $dir && echo * | xargs -n 400 rm -f
;
; And just as well, echo * would have run into the same arglist
; limitations. ls | xargs rm would be better.
;
quite.. without the performance hit of forking and running rm _for every
file_ *ouch!*
As an aside, I'd like to comment on the 'find . -print0 | xargs -0 rm'
line that Andrew posted, this is precisely the sort of GNU specific
extension that I would recommend that you DON'T learn, the moment you
move to a Unix platform that doesn't have GNU find (and you will)
you'll be puzzled. If you do, do so with the knowledge that this is NOT
supported by traditional find (as found in the 7th Edition Unix Programmer's
manual).
r.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug