Display a more compact output, replacing consecutive zeros (if any) with a star

xxd

  • Create a hexadecimal representation (hexdump) from a binary file, or vice-versa.
    More information: <https://manned.org/xxd>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

xxd -a {{input_file}}

click the source code to copy install xxd on any operating system with command-not-found.com