; I have this from time to time and I think the way I did it is remove the ; files 1 at a time using this command: ; ; find /bad/directory/* -print -exec rm -fr {} \; that's horribly inefficient (assuming it works), surely if the problem is a limitation on argv, then wouldn't your /bad/directory/* above overflow as well? It was for this reason that I didn't suggest something like cd $dir && echo * | xargs -n 400 rm -f which would certainly be preferable to unlinking one file at a time. Then you would probably get everything in two separate invocations. r. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
- Re: [SLUG] Help with rm Herbert Xu
- Re: [SLUG] Help with rm kevin
- Re: [SLUG] Help with rm luke
- Re: [SLUG] Help with rm Scott Howard
- Re: [SLUG] Help with rm Andrew Reilly
- Re: [SLUG] Help with rm luke
- Re: [SLUG] Help with rm Herbert Xu
- Re: [SLUG] Help with rm Russell Davies
- RE: [SLUG] Help with rm George Vieira
- RE: [SLUG] Help with rm Howard Lowndes
- Re: [SLUG] Help with rm Russell Davies
- Re: [SLUG] Help with rm Herbert Xu
- Re: [SLUG] Help with rm Russell Davies
- Re: [SLUG] Help with rm Anand Kumria
- Re: [SLUG] Help with rm Russell Davies
- Re: [SLUG] Help with rm Anand Kumria
- Re: [SLUG] Help with rm Russell Davies
- Re: [SLUG] Help with rm luke
- Re: [SLUG] Help with rm James Wilkinson
- Re: [SLUG] Help with rm Scott Howard
- [SLUG] Re: Help with rm Angus Lees