BSD 3 development
[unix-history] / usr / man / man1 / grep.1
index 76e6465..89ba4bb 100644 (file)
@@ -1,4 +1,5 @@
-.TH GREP 1 
+.TH GREP 1 11/16/79
+.UC
 .SH NAME
 grep, egrep, fgrep \- search a file for a pattern
 .SH SYNOPSIS
 .SH NAME
 grep, egrep, fgrep \- search a file for a pattern
 .SH SYNOPSIS
@@ -27,7 +28,7 @@ Normally, each line found
 is copied to the standard output.
 .I Grep
 patterns are limited regular expressions in the style of
 is copied to the standard output.
 .I Grep
 patterns are limited regular expressions in the style of
-.IR ed (1);
+.IR ex (1);
 it uses a compact nondeterministic algorithm.
 .I Egrep
 patterns are full regular expressions;
 it uses a compact nondeterministic algorithm.
 .I Egrep
 patterns are full regular expressions;
@@ -63,6 +64,22 @@ on which it was found.
 This is sometimes useful in locating
 disk block numbers by context.
 .TP
 This is sometimes useful in locating
 disk block numbers by context.
 .TP
+.B \-i
+The case of letters is ignored in making comparisons.
+(E.g. upper and lower case are considered identical.)
+(\fIgrep\fR\| only)
+.TP
+.B \-s
+Silent mode.
+Nothing is printed (except error messages).
+This is useful for checking the error status.
+.TP
+.B \-w
+The expression is searched for as a word
+(as if surrounded by `\e<' and `\e>', see
+.IR ex (1).)
+(\fIgrep\fR\| only)
+.TP
 .BI \-e " expression"
 Same as a simple
 .I expression 
 .BI \-e " expression"
 Same as a simple
 .I expression 
@@ -143,7 +160,7 @@ at the same parenthesis level
 is [\|] then
 *+? then concatenation then | and newline.
 .SH "SEE ALSO"
 is [\|] then
 *+? then concatenation then | and newline.
 .SH "SEE ALSO"
-ed(1),
+ex(1),
 sed(1),
 sh(1)
 .SH DIAGNOSTICS
 sed(1),
 sh(1)
 .SH DIAGNOSTICS