[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] rm Argument list too long
- Subject: Re: [cobalt-users] rm Argument list too long
- From: Graeme Merrall <graeme@xxxxxxxxxxxxx>
- Date: Fri Nov 1 23:28:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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