Skip to content

euxaristia/xxd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

205 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xxd

A hex-dump utility rewritten in Go, following Ken Thompson's philosophy of simplicity and efficiency.

Features

  • Normal, bits, little-endian, postscript, and C-include dump styles.
  • Reversal operation (convert hexdump back to binary).
  • Colour output support (printable vs non-printable characters).
  • British spelling for all flags and messages.
  • Efficient I/O using bufio.

Build

Building xxd requires Go 1.16 or later.

go build -o xxd github.com/euxaristia/xxd/cmd/xxd

Usage

Usage: xxd [options] [infile [outfile]]
Options:
  -a       autoskip
  -b       bits
  -c cols  columns
  -e       little-endian
  -g bytes group size
  -i       C include
  -l len   length
  -o off   offset
  -ps      postscript
  -r       revert
  -R when  colour (never, always, auto)
  -s seek  seek
  -u       upper case
  -v       version

License

Original xxd licensed under GPL-2.0. This Go port retains the same compatibility. Other parts licensed under BSL 1.0.

About

hex-dump-type utility xxd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%