[clug] Help with bash script
Peter Barker
pbarker at barker.dropbear.id.au
Sun Nov 2 06:29:20 GMT 2008
On Sun, 2 Nov 2008, Duncan Roe wrote:
> find . -type f -print | sed -e 's/ /\\ /g' | xargs whatever
Try:
find. -type f -print0 | xargs -0 whatever
find null-terminates the strings (rather than using EOL), and xargs
expects null-terminated strings on its standard input.
> Cheers ... Duncan.
Yours,
--
Peter Barker | Programmer,Sysadmin,Geek.
pbarker at barker.dropbear.id.au | You need a bigger hammer.
:: It's a hack! Expect underscores! - Nigel Williams
More information about the linux
mailing list