From: Glynn Clements <glynn@gclements.plus.com>
To: Mark Nipper <nipsy@bitgnome.net>
Cc: harry_b@mm.st, "Mário Gamito" <gamito@netual.pt>,
linux-admin@vger.kernel.org
Subject: Re: Deleting many files from a directory
Date: Thu, 30 Dec 2004 11:25:02 GMT [thread overview]
Message-ID: <200412301125.iBUBP25G014623@cerise.gclements.plus.com> (raw)
In-Reply-To: <20041223104825.GB72494@king.bitgnome.net>
Mark Nipper wrote:
> > To remove all files in all subdirectories do:
> >
> > find /path/ -type f | xargs -n 50 rm
> >
> > Thats much faster than 'find ...-exec...'
>
> That can get a little strange though if files have spaces
> or other strange characters in their names.
Using:
find /path -type -f -print0 | xargs -0 -n 50 rm
will cope with filenames which contain whitespace.
--
Glynn Clements <glynn@gclements.plus.com>
next prev parent reply other threads:[~2004-12-30 11:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-23 9:40 Deleting many files from a directory Mário Gamito
2004-12-23 9:59 ` Mark Nipper
2004-12-23 10:13 ` harry_b
2004-12-23 10:48 ` Mark Nipper
2004-12-30 11:25 ` Glynn Clements [this message]
2004-12-23 12:08 ` Hal Wigoda
2004-12-30 11:26 ` Glynn Clements
2004-12-25 12:08 ` Gustavo Guillermo Perez
2004-12-24 18:39 ` John Julian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200412301125.iBUBP25G014623@cerise.gclements.plus.com \
--to=glynn@gclements.plus.com \
--cc=gamito@netual.pt \
--cc=harry_b@mm.st \
--cc=linux-admin@vger.kernel.org \
--cc=nipsy@bitgnome.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).