Giter Site home page Giter Site logo

hd-daveshepard's Introduction

hd

Hex dump tool.

I wrote this little tool over 30 years ago. Used mainly on Linux nearly daily ever since. Before uploading to github, I added a --head, --tail (and --wide) options so it would be more useful on Windows when built with MinGW32. This because Windows (XP,7,10) doesn't have much in the way of redirects nor head nor tail nor less (although it does have more that can be piped, at least on W10). I can't speak to Windows11 (yet). The Makefile is for Linux and Makefile.mingw is for MinGW32-make.

Usage: hd [-bhwB?] [--head=n] [--tail=n] [--skip=n] file [... file]
where:
--bytes  or -b   print in bytes (default)
--shorts or -h   print in halfwords (16 bits)
--longs  or -w   print in words (32 bits)
--big    or -B   print assuming Big Endian
--head=n or -Hn  print only 'n' leading lines
--tail=n or -Tm  print only 'n' last lines
--skip=n or -Sn  first skip 'n' bytes on all inputs
--wide   or -W   set number of columns to 32. (Default is 16.)
--out=file       reassign stdout to 'file' (mainly used in Windows to make a UTF-8 output file instead of default UTF-16)
--err=file       reassign stderr to 'file' (mainly used in Windows to make a UTF-8 output file instead of default UTF-16)
--help   or -?   this message

hd-daveshepard's People

Contributors

daveshepperd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.