Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133395754
D25372.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25372.diff
View Options
Index: head/usr.bin/hexdump/od.1
===================================================================
--- head/usr.bin/hexdump/od.1
+++ head/usr.bin/hexdump/od.1
@@ -143,7 +143,7 @@
.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 @@
.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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 26, 11:34 AM (41 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24222639
Default Alt Text
D25372.diff (1 KB)
Attached To
Mode
D25372: od(1): Add EXAMPLES section
Attached
Detach File
Event Timeline
Log In to Comment