Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 802 Bytes

README.md

File metadata and controls

49 lines (30 loc) · 802 Bytes

hexdump

banner

A simplified clone of the hexdump -c Linux command.

It is used to display the contents of a file as a stream of hexadecimal values and their equivalent ASCII representation.

Usage

Compile with make:

$ make

Alternatively, compile as:

$ gcc -o hexdump -Wall src/hexdump.c

An executable file hexdump will ge generated.

Usage

./hexdump <file> [<count>]

It will display the hexadecimal byte-by-byte contents of <file> and stop at either the end of the file or when <count> bytes have been displayed. The <count> parameter is optional.

Examples

To print all bytes of file test.wav:

./hexdump test.wav

To print the first 10 bytes of test.wav:

./hexdump test.wav 10

LICENSE

MIT