I’ve been writing some non-printing characters to a file. But when I concatenate, it appears empty.
cat log.txt
# Nothing here ๐ฅบ
cat those non-printing characters with -v:
cat -v log.txt
jjjj:wq^M%
See man cat for these details:
-v Display non-printing characters so they are
visible. Control characters print as โ^Xโ for
control-X; the delete character (octal 0177) prints
as โ^?โ. Non-ASCII characters (with the high bit
set) are printed as โM-โ (for meta) followed by the
character for the low 7 bits.