[LUAU] How do you delete over 500,000 files in a directory

Jim Thompson jim at netgate.com
Thu Nov 3 17:19:29 PST 2005


Jim Thompson wrote:

> Hawaii Linux Institute wrote:
>
>> ne at a time, & I am sure everyone here knows how to do this.  For 
>> example:
>>
>> for i in m*; do rm m*; done
>
> still requires bash to glob all 500,000 files.   Fails for the same 
> reaons.

note my error here.  Bash is OK globbing 500,000 files (twice!), but the 
(exec of) '/bin/rm' will fail with E2BIG.

jim




More information about the LUAU mailing list