Lines Matching +full:data +full:- +full:lines
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
41 .Bk -words
48 .Op Fl Fl binary-files= Ns Ar value
53 .Op Fl Fl line-buffered
62 selecting lines that match one or more patterns.
87 Patterns may consist of one or more lines,
88 allowing any of the pattern lines to match a portion of the input.
91 .Bl -tag -width indent
92 .It Fl A Ar num , Fl Fl after-context= Ns Ar num
95 lines of trailing context after each match.
110 to output lines matching the specified pattern.
111 .It Fl B Ar num , Fl Fl before-context= Ns Ar num
114 lines of leading context before each match.
120 .It Fl b , Fl Fl byte-offset
126 lines of leading and trailing context surrounding each match.
133 Only a count of selected lines is written to standard output.
176 .It Fl E , Fl Fl extended-regexp
195 .Pq Sq - .
213 .It Fl Fl exclude-dir Ar pattern
221 .Fl Fl exclude-dir
223 .Fl Fl include-dir
227 .Fl Fl include-dir
230 .It Fl F , Fl Fl fixed-strings
241 Empty pattern lines match every input line.
246 .It Fl G , Fl Fl basic-regexp
255 Always print filename headers with output lines.
256 .It Fl h , Fl Fl no-filename
259 with output lines.
265 .Dq Fl Fl binary-files= Ns Cm without-match
267 .It Fl i , Fl Fl ignore-case
284 .It Fl Fl include-dir Ar pattern
291 .Fl Fl include-dir
293 .Fl Fl exclude-dir
296 .It Fl L , Fl Fl files-without-match
297 Only the names of files not containing selected lines are written to
305 .It Fl l , Fl Fl files-with-matches
306 Only the names of files containing selected lines are written to
333 .It Fl m Ar num , Fl Fl max-count= Ns Ar num
337 .It Fl n , Fl Fl line-number
350 Prints a zero-byte after the file name.
357 .It Fl o , Fl Fl only-matching
358 Prints only the matching part of the lines.
381 .It Fl s , Fl Fl no-messages
391 .It Fl v , Fl Fl invert-match
392 Selected lines are those
395 .It Fl w , Fl Fl word-regexp
405 .It Fl x , Fl Fl line-regexp
406 Only input lines selected against an entire fixed string or regular
407 expression are considered to be matching lines.
412 .It Fl z , Fl Fl null-data
413 Treat input and output data as sequences of lines terminated by a
414 zero-byte instead of a newline.
415 .It Fl Fl binary-files= Ns Ar value
418 .Bl -tag -compact -width "binary (default)"
421 .It Cm without-match
426 .It Fl Fl line-buffered
434 .Dq Cm -
443 .Bl -tag -width "GREP_OPTIONS"
445 This variable specifies the color used to highlight matched (non-empty) text.
451 This variable specifies the type name of the terminal, console or display-device
461 .Bl -tag -width flag -compact
463 One or more lines were selected.
465 No lines were selected.
470 .Bl -dash
480 .Dl $ grep -w 'patricia' myfile
486 .Dl $ grep -c FOO myfile
490 .Dl $ grep -c -i FOO myfile
510 Find all lines in a file which do not contain the words
515 .Dl $ grep -v -e 'foo' -e 'bar' myfile
523 Show matching lines and the name of the
531 .Dl $ grep -H -R FIXME --include="*.h" /usr/src/sys/arm/
535 .Dl $ grep -l -R FIXME --include="*.h" /usr/src/sys/arm/
537 Show lines containing the text
540 the line number and the offset in the file for those lines that matched.
542 .Dl $ grep -b --colour -n foo myfile
544 Show lines that match the extended regular expression patterns read from the
547 .Dl $ echo -e 'Free\enBSD\enAll.*reserved' | grep -E -f - myfile
549 Show lines from the output of the
552 three lines of leading context and one line of trailing context:
554 .Dl $ pciconf -lv | grep -B3 -A1 -E 'class.*=.*storage'
558 .Dl $ grep -q foo myfile && echo File matches
570 .St -p1003.1-2008