in reply to Re^2: Myth busted: Shell isn't always faster than Perl
in thread Myth busted: Shell isn't always faster than Perl
it starts complaining AND skipping filenames with spaces in them
...And that is precisely why find has the -print0 switch and xargs has the -0 (or --null) switch.
find . -type f -print0 | xargs -0 rm
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Myth busted: Shell isn't always faster than Perl
by polettix (Vicar) on Jan 05, 2006 at 16:41 UTC | |
by Perl Mouse (Chaplain) on Jan 05, 2006 at 17:03 UTC | |
by polettix (Vicar) on Jan 05, 2006 at 17:35 UTC | |
by Perl Mouse (Chaplain) on Jan 05, 2006 at 22:20 UTC |