Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144438431
D27543.id80540.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
884 B
Referenced Files
None
Subscribers
None
D27543.id80540.diff
View Options
Index: usr.bin/look/look.1
===================================================================
--- usr.bin/look/look.1
+++ usr.bin/look/look.1
@@ -96,6 +96,35 @@
.Nm
utility exits 0 if one or more lines were found and displayed,
1 if no lines were found, and >1 if an error occurred.
+.Sh EXAMPLES
+Look for lines starting with
+.Ql xylene
+in the file
+.Pa /usr/share/dict/words :
+.Bd -literal -offset indent
+$ look xylen
+xylene
+xylenol
+xylenyl
+.Ed
+.Pp
+Same as above, but do not consider any characters in
+.Ar string
+beyond the first
+.Ql e .
+Note that
+.Fl f
+is implicit since we are searching the default file
+.Pa /usr/share/dict/words :
+.Bd -literal -offset indent
+$ look -t e xylen
+Xyleborus
+xylem
+xylene
+xylenol
+xylenyl
+xyletic
+.Ed
.Sh COMPATIBILITY
The original manual page stated that tabs and blank characters participated
in comparisons when the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 11:01 AM (6 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28570807
Default Alt Text
D27543.id80540.diff (884 B)
Attached To
Mode
D27543: look(1): Add EXAMPLES section
Attached
Detach File
Event Timeline
Log In to Comment