Michael C. Toren on Tue, 1 Jun 1999 18:19:27 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [SLL] Too many args for rm *.in


> couple of alternate ways:
> 
> find . -name "*.in" -exec rm -f {} \;
> 
> find . -name "*.in" -print | xargs rm -f

Utilizing xargs is going to be much faster than fork/exec'ng rm for each
file found.  Let xargs group the files together for you in appropriate
chunks and save you the work.

Using either of the above find solutions is better (in my opinion) than
schemes such as "rm [a-f]*.in", though.

-mct