Re: removing files from directories
- From: dr@xxxxxxxx
- Date: Sat, 2 Dec 2006 23:46:51 +0000 (UTC)
Thanks Martin - the "ls | xargs rm" worked well. Your mention of "rm -r
maildir" serves as a reminder to look at the man pages on such occasions.
Hul
Martin Neitzel <neitzel@xxxxxxxxxxxxxxxxxxxxx> wrote:
When removing an accumulation of about 3000 mail files, the command "rm *"
returns an error saying the file list is too long.
Variant 1 (specific to "remove all files"):
cd ..
rm -r maildir
Variant 2 (general approach where "*" generates too long argument lists):
ls | xargs rm
Martin Neitzel.
- References:
- removing files from directories
- From: Hul Tytus
- Re: removing files from directories
- From: Martin Neitzel
- removing files from directories
- Prev by Date: Re: ADVERT: C12-GAMMA
- Next by Date: install w/ i386 motherboard IDE + HighPoint IDE controllers?
- Previous by thread: Re: removing files from directories
- Next by thread: Re: removing files from directories
- Index(es):