Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148755537
D25344.id73509.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
885 B
Referenced Files
None
Subscribers
None
D25344.id73509.diff
View Options
Index: usr.bin/comm/comm.1
===================================================================
--- usr.bin/comm/comm.1
+++ usr.bin/comm/comm.1
@@ -95,6 +95,35 @@
.Xr environ 7 .
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+Assuming a file named
+.Pa example.txt
+with the following contents:
+.Bd -literal -offset indent
+a
+b
+c
+d
+.Ed
+.Pp
+Show lines only in
+.Pa example.txt ,
+lines only in stdin and common lines:
+.Bd -literal -offset indent
+$ echo -e "B\enc" | comm example.txt -
+ B
+a
+b
+ c
+d
+.Ed
+.Pp
+Show only common lines doing case insensitive comparisons:
+.Bd -literal -offset indent
+$ echo -e "B\enc" | comm -1 -2 -i example.txt -
+b
+c
+.Ed
.Sh SEE ALSO
.Xr cmp 1 ,
.Xr diff 1 ,
@@ -108,9 +137,7 @@
.Pp
The
.Fl i
-option is an extension to the
-.Tn POSIX
-standard.
+option is an extension to the POSIX standard.
.Sh HISTORY
A
.Nm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 21, 1:34 AM (11 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30052480
Default Alt Text
D25344.id73509.diff (885 B)
Attached To
Mode
D25344: comm(1): Add EXAMPLES section
Attached
Detach File
Event Timeline
Log In to Comment