mpifileutils icon indicating copy to clipboard operation
mpifileutils copied to clipboard

Add a --print0 option to print null terminated strings

Open jprorama opened this issue 6 months ago • 1 comments

This option is useful for working with files that have special characters like newlines embedded in them. It makes it it possible to pass this output to other downstream commands that can process null terminated strings, e.g. "parallel --null ..."

Added option string, new function MFU_PRED_PRINT0() and argument parsing to select this feature.

jprorama avatar Jul 15 '25 23:07 jprorama

This would be a nice addition. I hacked something similar, but more intrusive than this patch which is much cleaner.

I actually need to use dwalk and dfind to find sockets and pipes files and use rsync to sync them. Using rsync from0 is less error prone considering you can have path with weird characters in them, like a newline.

jbd avatar Sep 12 '25 07:09 jbd