Re: why is perl -e 'unlink(glob("*"))' so much faster than rm ?
- From: Ben Bacarisse <spam@xxxxxxxxx>
- Date: 17 Jul 2006 15:44:33 GMT
ewaguespack@xxxxxxxxx wrote:
i had a situation that required that i remove several thousand zero
byte files, and i tried this first:
# find . -type f -exec rm -f {} \;
this was taking ages, so on a hunch I decided to try this to see it I
got any better results:
# perl -e 'unlink(glob("*"))'
I smell a rat. What an odd command to post! For one thing, it does
not do the same as the find above and, secondly, a single rm would
surely be faster still?
With luck, no one will have tried either command out!
--
Ben.
.
- Follow-Ups:
- References:
- why is perl -e 'unlink(glob("*"))' so much faster than rm ?
- From: ewaguespack
- why is perl -e 'unlink(glob("*"))' so much faster than rm ?
- Prev by Date: Re: why is perl -e 'unlink(glob("*"))' so much faster than rm ?
- Next by Date: Re: When would you use qr// on a literal string?
- Previous by thread: Re: why is perl -e 'unlink(glob("*"))' so much faster than rm ?
- Next by thread: Re: why is perl -e 'unlink(glob("*"))' so much faster than rm ?
- Index(es):