On 03/01/07, Zhasper <[EMAIL PROTECTED]> wrote:
Only because you're using the -0 flag.
...
(This is also going to destroy the ability to handle whitespace in
filenames though, so you probably don't want to do this.)
Correct on both accounts, but this is why I insist on using -0 whenever
possible, especially when processing input to sensitive commands like rm,
and bother adding the weird "echo -e".
Another "nul generator" could be
perl -e 'print "\0"'
instead of "echo -e \\0"
or
readlink -fe link | awk '{ print $0 "\0" }' | xargs -0r rm -rf
and possibly other ways to achieve the same goal.
--Amos
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html