From 46439007cf417cbd9ac8049bb4122c890097a0fa Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 20:52:35 +0000 Subject: 20060303-partial --- man/1/grep | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 man/1/grep (limited to 'man/1/grep') 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. -- cgit v1.2.3