Sujet : Re: Files tree
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.miscDate : 13. Apr 2024, 01:25:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uvcjdf$2kbfj$9@dont-email.me>
References : 1 2
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Fri, 12 Apr 2024 14:13:10 -0000 (UTC), Rich wrote:
If you are going to output null terminated filenames (-print0) then
don't almost immediately throw out the nulls by converting them to
newlines.
And also note that Bash has a technique to read those null-terminated
pathnames, stopping at the null without being confused by any newlines
prior to that.
You can then use “printf %q” to output your report with those funny
characters properly escaped.