|
|
Ouch... don't do that
Because OSX filenames commonly contain whitespace, doing anything with find and xargs requires the NUL-delimited mode:
find ... -print0 | xargs -0 ...
please, please, please...
Could you explain that in more details?
why using -0 and -print0 matters
By default, xargs takes any whitespace in its input to delimit between entries. This is fine for traditional typical Unix filenames, but has always been a problem for security-minded folks who know that filenames can contain arbitrary whitespace (spaces, tabs, newlines).
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.17 seconds |
|