Hacker News new | ask | show | jobs
by morcheeba 786 days ago
hexdump will automatically does "squeezing" of repeated lines. Follow this with a line count and multiply by the bytes/line and you'll get a rough number of non-repetitive bytes. https://man7.org/linux/man-pages/man1/hexdump.1.html
1 comments

Use xxd or od then.