Re:The Beauty of Unix Pipelines
by brokenmachine on Friday June 05, 2020 @02:31AM
(#23425648)
Never heard about this, would this affect performance?
Can you give some examples?
Can you give some examples?
Well, that's easy. Don't escape or quote the strings; encode them. Turn them into opaque tokens, and then do Unix things to the opaque tokens, before finally decoding them back to being strings.
There's a reason od(1) is in coreutils. It's a Unix fundamental when working with arbitrary data. Hex and base64 are your friends (and Unix tools are happy to deal with both.)