Re: removing files from directories



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
.