Grep; Description; Syntax; Result - Dell PowerVault Storage Area Network Reference Manual

Dell dr series system command line reference guide
Hide thumbs Also See for PowerVault Storage Area Network:
Table of Contents

Advertisement

To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.
gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.
Examples:
gawk '{ sum += $1 }; END { print sum }' file
gawk -F: '{ print $1 }' /etc/passwd

grep

Description

Displays the supported usage of the Linux grep command with the DR Series system.

Syntax

grep --help

Result

Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
-E, --extended-regexp
-F, --fixed-strings
-G, --basic-regexp
-P, --perl-regexp
-e, --regexp=PATTERN
-f, --file=FILE
-i, --ignore-case
-w, --word-regexp
-x, --line-regexp
-z, --null-data
Miscellaneous:
-s, --no-messages
-v, --invert-match
-V, --version
--help
--mmap
Output control:
-m, --max-count=NUM
-b, --byte-offset
-n, --line-number
--line-buffered
-H, --with-filename
-h, --no-filename
--label=LABEL
-o, --only-matching
-q, --quiet, --silent
--binary-files=TYPE
130
PATTERN is an extended regular expression
PATTERN is a set of newline-separated strings
PATTERN is a basic regular expression
PATTERN is a Perl regular expression
use PATTERN as a regular expression
obtain PATTERN from FILE
ignore case distinctions
force PATTERN to match only whole words
force PATTERN to match only whole lines
a data line ends in 0 byte, not newline
suppress error messages
select non-matching lines
print version information and exit
display this help and exit
use memory-mapped input if possible
stop after NUM matches
print the byte offset with output lines
print line number with output lines
flush output on every line
print the filename for each match
suppress the prefixing filename on output
print LABEL as filename for standard input
show only the part of a line matching PATTERN
suppress all normal output
assume that binary files are TYPE
TYPE is 'binary', 'text', or 'without-match'

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents