Spaces in filenames can be a problem when using find | xargs combination.
To solve this, use:
find . -print0 | xargs -0 <command>
This tells find and xargs to use the ASCII NUL character instead of space to end (separate) the filenames.
Spaces in filenames can be a problem when using find | xargs combination.
To solve this, use:
find . -print0 | xargs -0 <command>
This tells find and xargs to use the ASCII NUL character instead of space to end (separate) the filenames.
May 19, 2009 at 10:13 am |
Nice tip
Nice blog, too.
I’d recommend to split the C/C++ categories, becouse lots of your snipplets are valid in only one of the two languages.
June 5, 2009 at 8:04 pm |
[...] to Not So Frequently Asked Questions, where I found the solution [...]