diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /man/1/grep | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'man/1/grep')
| -rw-r--r-- | man/1/grep | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/man/1/grep b/man/1/grep new file mode 100644 index 00000000..fbc83057 --- /dev/null +++ b/man/1/grep @@ -0,0 +1,51 @@ +.TH GREP 1 +.SH NAME +grep \- pattern matching +.SH SYNOPSIS +.B grep +[ +.B -lnviLs +] +.I pattern +[ +.IR file ... +] +.SH DESCRIPTION +.B Grep +prints lines from each +.I file +that match the +.IR pattern , +a regular expression as defined in +.IR regex (2). +If no files are given, standard input is used. +If more than one file is given, each line of output +is preceded by the name of the file it was found in. +The options are: +.TP 10 +.B -l +Print only the name of each file that contains a match. +.TP +.B -L +Print the name of each file that does not contain a match. +.TP +.B -n +Precede each line of output with its line number. +.TP +.B -v +Print only lines that do not match +.IR pattern . +.TP +.B -i +Pattern matching is case insensitive (roman letters only). +.TP +.B -s +Do not print anything; yield only the exit status. +.SH SOURCE +.B /appl/cmd/grep.b +.SH SEE ALSO +.IR regex (2) +.SH DIAGNOSTICS +.I Grep +returns a non-nil exit status if no matches have been made, +or if an error has occurred. |
