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

Re: [cobalt-users] rm Argument list too long



On Wed, Oct 30, 2002 at 12:46:18AM +0100, Support wrote:
> Hi All,
> 
> What am I missing here.....
> 
> When giving the following command:
> 
> rm -rf /home/sites/*/logs/*.*
> 
> I get
> 
> sh: /bin/rm: Argument list too long

Another option is to use find coupled with xargs

find . -name "access.log" -print | xargs rm

This will pass the path to rm for deletion for any file found. I've used
it plenty and it's really not that much slower.
'find' is an great utility and it's worth getting to grips with.

Cheers,
 Graeme