for i in *; do rm -f $i; done
On Tue, 1 Jun 2004 20:52:45 +0530, Zainul M Charbiwala zainul@ee.iitb.ac.in wrote:
On 1 Jun 2004 15:01:17 -0000 "Anand Pandurang Shelake" anand_shelake@rediffmail.com wrote:
Hi all, I am silent user of the group. I am facing a problem for deleteing mails which are queued by sendmail function. I stopped the sendmail service. I tried rm * but I am getting message segmentation fault. The mails are in queue are around more than 100000. Can Anybody help me in this for deleting the mails.
rm might have a problem taking 100000 filenames on the command line. The files are usually numbered with a common prefix. Try deleting them in sets of 100-500. Its tedious but it'll get the job done.
If you're a scripter, writing a one-line Perl script will do you wonders.
hth, Zainul.
regds, Anand
-- Zainul M Charbiwala http://www.ee.iitb.ac.in/~zainul/