head (1)


NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OPERANDS
COPYRIGHT
Source Code

NAME

grep - search a file for a pattern

SYNOPSIS

grep

[-E|-F] [-c|-l|-q] [-insvx] -e pattern_list [-e pattern_list]... [-f pattern_file]... [file...]

grep

[-E|-F] [-c|-l|-q] [-insvx] [-e pattern_list]... -f pattern_file [-f pattern_file]... [file...]

grep

[-E|-F] [-c|-l|-q] [-insvx] pattern_list [file...]

DESCRIPTION

The grep utility searches input files for patterns. The patterns are specified by the -e option, -f option, or te pattern_list operand.

OPTIONS

-E

Match using extended regular expressions.

-F

Match using fixed strings.

-c

Write only a count of selected lines to standard output.

-e pattern_list

Specify oen or more patterns to be used during the search for input.

-f pattern_file

Read one or more patterns from the file named by the pathname pattern_file.

-i

Perform pattern matching in searches without regard to case.

-l

Write only the names of files containing selected lines to standard output.

-n

Precede each output line by its line number in the file.

-q

Quiet. Nothing is printed to standard output, regardless of matching lines.

-s

Suppress the error messages written for nonexistent or unreadable files.

-v

Invert the search pattern.

-x

Consider only input lines that use all characters in the line excluding the terminating <newline> to match an entire fixed string or regular expression to be matching lines. (unimplemented)

OPERANDS

The following operand is supported:

pattern_list

Specify one or more patterns to be used during the search for input.

file

A pathname of a file to be searched for the patterns. If no file operands are specified, the standard input is used.

COPYRIGHT

Copyright © 2021 Benjamin Stürz
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Generated using groff on 2022-07-19 01:11:30 (UTC)

Look at my source code on GitHub Memes
This website is licensed under the terms of the AGPLv3.
Tor link: 3gto4zix3cpwhq32sh5ygsr3brlmgy4pdf26md46e4zpzfzmbftw3cyd.onion