Skip to content

gerhardwgross/bytes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

bytes

Usage: bytes [-xUecwl] fileneme [start] [end]
Prints the ASCII char values as unsigned ints (0-255) of each character
in the specified file and their character representation, if printable.

o Works identically on all file types - text and binary.
o [start] is the char # in filename at which to begin displaying.
o [end] is the char # in filename at which to end displaying.
o If start and end are not supplied, all bytes are displayed.
o If start is supplied and end is not supplied, the display
o begins at the start char # and continues until EOF.
o It is generally convenient to pipe the output of this utility to "more" (e.g "bytes tmp.exe | more").

-x prints ASCII values in hexadecimal (default is decimal)
-U assumes text file written in Unicode (2 octets per char)
-e report the endianness of current machine then exit
-c compute and print the 32 bit CRC of the contents of the specified file
-wXX Set width of output (number of chars across screen = XX)
-lX Set num lines of output to print, when no 'end' value is specified. X must be an integer.

About

Display file contents as bytes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages