3 ms·
You're using -print0 and surprised that it's output has NUL characters between them?
by NikkiA 2y ago
You're using -print0 and surprised that it's output has NUL characters between them?
- xg15 2y agoWas puzzled about that too, especially since his solution "find ... -print0 | strings" undoes the advantage that -print0 gives you, i.e. safe handling of filenames with newlines in them (and his "sed" solution straight-up undoes the -print0 completely). So with all due respect to the author, I wonder if he was just using -print0 after rote-learning it as part of the find command (or having had some tutor implore "ALWAYS use -print0"), without knowing what it does.