Deleted Added
sdiff udiff text old ( 210426 ) new ( 210578 )
full compact
1.\" $FreeBSD: head/usr.bin/grep/grep.1 210426 2010-07-23 17:42:42Z gabor $
2.\" $OpenBSD: grep.1,v 1.38 2010/04/05 06:30:59 jmc Exp $
3.\" Copyright (c) 1980, 1990, 1993
4.\" The Regents of the University of California. All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE.
29.\"
30.\" @(#)grep.1 8.3 (Berkeley) 4/18/94
31.\"
32.Dd September 19, 2009
33.Dt GREP 1
34.Os
35.Sh NAME
36.Nm grep , egrep , fgrep ,
37.Nm zgrep , zegrep , zfgrep
38.Nd file pattern searcher
39.Sh SYNOPSIS
40.Nm grep

--- 140 unchanged lines hidden (view full) ---

181Specify a pattern used during the search of the input:
182an input line is selected if it matches any of the specified patterns.
183This option is most useful when multiple
184.Fl e
185options are used to specify multiple patterns,
186or when a pattern begins with a dash
187.Pq Sq - .
188.It Fl Fl exclude
189If
190.Fl R
191is specified, it excludes files matching the given
192filename pattern.
193.It Fl Fl exclude-dir
194If
195.Fl R
196is specified, it excludes directories matching the
197given filename pattern.
198.It Fl F , Fl Fl fixed-strings
199Interpret
200.Ar pattern
201as a set of fixed strings
202(i.e. force
203.Nm grep
204to behave as
205.Nm fgrep ) .

--- 27 unchanged lines hidden (view full) ---

233.Fl Fl binary-file Ns = Ns Ar without-match
234option.
235.It Fl i , Fl Fl ignore-case
236Perform case insensitive matching.
237By default,
238.Nm grep
239is case sensitive.
240.It Fl Fl include
241If
242.Fl R
243is specified, it includes the files matching the
244given filename pattern.
245.It Fl Fl include-dir
246If
247.Fl R
248is specified, it includes the directories matching the
249given filename pattern.
250.It Fl J, Fl Fl bz2decompress
251Decompress the
252.Xr bzip2 1
253compressed file before looking for the text.
254.It Fl L , Fl Fl files-without-match
255Only the names of files not containing selected lines are written to
256standard output.
257Pathnames are listed once per file searched.

--- 204 unchanged lines hidden ---