zfs diff
replaces some of the characters in files names with \xxxx
(in an octal encoding). Can I decrypt it back with awk
or sed
or any other common utility (without resorting to a perl or a python script)? An example zfs diff
output can be created as follows:
echo '+ F /dir/my\0040file' > listing
My question is, can I decrypt listing
to get
+ F /dir/my file
instead of
+ F /dir/my\0040file
(My ultimate goal is to pipe it back in ls -l
to get file sizes.)
zfs diff
has an option to return the raw filenames instead of escaping it?-e
to yourecho
command? See:help echo
listing
. In practice, that would be an output of azfs diff
command. So, I havelisting
just as given and I cannot create it in a different way.zfs diff
(no descriptions, no images, no links) and your desired output for that sample to your question (no comment).