Deleted Added
full compact
grep.1 (210389) grep.1 (210426)
1.\" $FreeBSD: head/usr.bin/grep/grep.1 210389 2010-07-22 19:11:57Z gabor $
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.\"
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 19 September, 2009
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

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

369The default is 2.
370.It Fl Fl line-buffered
371Force output to be line buffered.
372By default, output is line buffered when standard output is a terminal
373and block buffered otherwise.
374.Pp
375.El
376If no file arguments are specified, the standard input is used.
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

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

369The default is 2.
370.It Fl Fl line-buffered
371Force output to be line buffered.
372By default, output is line buffered when standard output is a terminal
373and block buffered otherwise.
374.Pp
375.El
376If no file arguments are specified, the standard input is used.
377.Sh RETURN VALUES
377.Sh EXIT STATUS
378The
379.Nm grep
380utility exits with one of the following values:
381.Pp
382.Bl -tag -width flag -compact
383.It Li 0
384One or more lines were selected.
385.It Li 1

--- 76 unchanged lines hidden ---
378The
379.Nm grep
380utility exits with one of the following values:
381.Pp
382.Bl -tag -width flag -compact
383.It Li 0
384One or more lines were selected.
385.It Li 1

--- 76 unchanged lines hidden ---