Changeset View
Changeset View
Standalone View
Standalone View
head/usr.bin/hexdump/od.1
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | |||||
Specify the output format. | Specify the output format. | ||||
The | The | ||||
.Ar type | .Ar type | ||||
argument | argument | ||||
is a string containing one or more of the following kinds of type specifiers: | is a string containing one or more of the following kinds of type specifiers: | ||||
.Bl -tag -width indent | .Bl -tag -width indent | ||||
.It Cm a | .It Cm a | ||||
Named characters | Named characters | ||||
.Pq Tn ASCII . | .Pq ASCII . | ||||
Control characters are displayed using the following names: | Control characters are displayed using the following names: | ||||
.Bl -column "000 NUL" "001 SOH" "002 STX" "003 ETX" "004 EOT" "005 ENQ" | .Bl -column "000 NUL" "001 SOH" "002 STX" "003 ETX" "004 EOT" "005 ENQ" | ||||
.It "000 NUL 001 SOH 002 STX 003 ETX 004 EOT 005 ENQ" | .It "000 NUL 001 SOH 002 STX 003 ETX 004 EOT 005 ENQ" | ||||
.It "006 ACK 007 BEL 008 BS 009 HT 00A NL 00B VT" | .It "006 ACK 007 BEL 008 BS 009 HT 00A NL 00B VT" | ||||
.It "00C FF 00D CR 00E SO 00F SI 010 DLE 011 DC1" | .It "00C FF 00D CR 00E SO 00F SI 010 DLE 011 DC1" | ||||
.It "012 DC2 013 DC3 014 DC4 015 NAK 016 SYN 017 ETB" | .It "012 DC2 013 DC3 014 DC4 015 NAK 016 SYN 017 ETB" | ||||
.It "018 CAN 019 EM 01A SUB 01B ESC 01C FS 01D GS" | .It "018 CAN 019 EM 01A SUB 01B ESC 01C FS 01D GS" | ||||
.It "01E RS 01F US 020 SP 07F DEL \& \&" | .It "01E RS 01F US 020 SP 07F DEL \& \&" | ||||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
and | and | ||||
.Ev LC_CTYPE | .Ev LC_CTYPE | ||||
environment variables affect the execution of | environment variables affect the execution of | ||||
.Nm | .Nm | ||||
as described in | as described in | ||||
.Xr environ 7 . | .Xr environ 7 . | ||||
.Sh EXIT STATUS | .Sh EXIT STATUS | ||||
.Ex -std | .Ex -std | ||||
.Sh EXAMPLES | |||||
Dump stdin and show the output using named characters and C-style escaped | |||||
characters: | |||||
.Bd -literal -offset indent | |||||
$ echo "FreeBSD: The power to serve" | od -a -c | |||||
0000000 F r e e B S D : sp T h e sp p o w | |||||
F r e e B S D : T h e p o w | |||||
0000020 e r sp t o sp s e r v e nl | |||||
e r t o s e r v e \en | |||||
0000034 | |||||
.Ed | |||||
.Pp | |||||
Dump stdin skipping the first 13 bytes using named characters and dumping no | |||||
more than 5 bytes: | |||||
.Bd -literal -offset indent | |||||
$ echo "FreeBSD: The power to serve" | od -An -a -j 13 -N 5 | |||||
p o w e r | |||||
.Ed | |||||
.Sh COMPATIBILITY | .Sh COMPATIBILITY | ||||
The traditional | The traditional | ||||
.Fl s | .Fl s | ||||
option to extract string constants is not supported; consider using | option to extract string constants is not supported; consider using | ||||
.Xr strings 1 | .Xr strings 1 | ||||
instead. | instead. | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr hexdump 1 , | .Xr hexdump 1 , | ||||
Show All 11 Lines |