forsyth20121205-174063a80cc13 years agoHistory
92 lines · 1.9 KB · Text
RawDownload
.TH XD 1 .SH NAMExd \- dump file contents in multiple formats.SH SYNOPSIS.B xd[.I option\&... ] [.BI - format\&... ] [.IR file ...].SH DESCRIPTION.B Xddumps the contents of each.I filein one or more formats.If no file is specified, standard input is read.Input is processed in 16 byte chunks.Each chunk is output in each of the specified.IR format s,one format per line.Each line of output is prefixed its file offset.This is zero padded for the first format; subsequent formats are blank padded.If more than one.I fileis specified, the name of each file is output at the start of its dump..PPOutput formats are specified by a two character name,.B 4xby default.The first character defines the byte width of the format; the second characterdefines the style of output..PPThe available width specifiers are:.TF "1 or b".TP.BR 1 " or " b1 byte units..TP.BR 2 " or " w2 byte big-endian units..TP.BR 4 " or " l4 byte big-endian units..TP.BR 8 " or " v8 byte big-endian units..PD.PPThe available styles are:.TP 0.B oOctal.PD 0.TP.B dDecimal.TP.B xHexadecimal.PD.PPIn addition to the above format specifiers,.B -ccan be used to denote ASCII format.This is the same as.B 1xexcept that codes are printed as printable ASCII characters or Limbo escape sequenceswhere possible..SH OPTIONS.TP 10.B -uUnbuffered output.  The output buffer is flushed after the dump of each 16 byte input chunkhas been generated..TP.B -rMark repeated 16 byte input chunks.The first chunk is output as per the format specifiers, followed by an asterisk representing1 or more occurrences of identical data..TP.B -sReverse the order of input bytes in chunks of 4 before processing for output..TP.BI -a stylePrint file addresses in the given.IR style ..SH SOURCE.TP.B /appl/cmd/xd.b.SH BUGSThere is no means of dumping 2 or 8 byte wide values in little-endian form.