On Sat, 29 Apr 2000, Jon Nichols wrote:

> sometimes, in directories with hundreds of thousands of files
> i'll try a big glob rm and get an error like 'Arguments too long'.

man xargs. Note the -n option. Then try something like:

        ls *March* | xargs -n 10 rm

This will remove the files in chunks of ten, instead of building a command
line that is potentially too large. 

-- 
Todd A. Jacobs
Senior Network Consultant


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to