summaryrefslogtreecommitdiff
path: root/usr.bin/hexdump
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-06-23 07:48:48 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-06-23 07:48:48 +0000
commit63280725b2039ebb616adb2e29173de4f179144c (patch)
tree31e88482bce7a84909969c0b1cb43ae7170b80f2 /usr.bin/hexdump
parent0cadedfc46abb38b6136130eb7c5ea19143e941a (diff)
downloadsrc-test2-63280725b2039ebb616adb2e29173de4f179144c.tar.gz
src-test2-63280725b2039ebb616adb2e29173de4f179144c.zip
Notes
Diffstat (limited to 'usr.bin/hexdump')
-rw-r--r--usr.bin/hexdump/od.120
1 files changed, 19 insertions, 1 deletions
diff --git a/usr.bin/hexdump/od.1 b/usr.bin/hexdump/od.1
index b78b4fda2b98..e063717a4ac5 100644
--- a/usr.bin/hexdump/od.1
+++ b/usr.bin/hexdump/od.1
@@ -143,7 +143,7 @@ is a string containing one or more of the following kinds of type specifiers:
.Bl -tag -width indent
.It Cm a
Named characters
-.Pq Tn ASCII .
+.Pq ASCII .
Control characters are displayed using the following names:
.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"
@@ -243,6 +243,24 @@ as described in
.Xr environ 7 .
.Sh EXIT STATUS
.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
The traditional
.Fl s