On Thu, 3 Jun 2004 10:08:26 +0530, Amitay Isaacs <[EMAIL PROTECTED]> wrote:
>
> This might also have problems since * is expanded by shell to reflect
Nope it doesn't have any such problems.
> filenames in that directory. Shell might not be able to expand huge
> number of files in the directory. Better is to use find.
>
> find . -type f -exec rm -f {} \;
>
> Amitay.
>
> On Tuesday 01 June 2004 22:18, Chandrashekhar Bhosle wrote:
> > for i in *; do rm -f $i; done
> >
> > On Tue, 1 Jun 2004 20:52:45 +0530, Zainul M Charbiwala
> >
> > <[EMAIL PROTECTED]> wrote:
> > > On 1 Jun 2004 15:01:17 -0000
> > >
> > > "Anand Pandurang Shelake" <[EMAIL PROTECTED]> 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
> > > >
> > > >
> > > >--
> > > >http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
> > >
> > > --
> > > Zainul M Charbiwala
> > > http://www.ee.iitb.ac.in/~zainul/
> > >
> > >
> > >
> > > --
> > > http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
>
> --
> http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
>
--
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers