On Tue, 24 Dec 2024, Russell Senior wrote:

cat <yourfile> | tr -d '[:graph:]'  | tr -d '\n\r' | hexdump -ve '1/1
"%02X " "\n"' | sort | uniq -c

This will give you a count of non-printing characters ([:graph:] is
"all printable characters, not including space") excluding carriage
return and line feed. Space is hex 20, Tab is hex 09.

You could wrap that in a script.

Thanks,

Rich

Reply via email to