Additional linux commands, Grep, Description – Dell PowerVault DR2000v User Manual
Page 149: Syntax, Result, 7 additional linux commands
7
Additional Linux Commands
This topic introduces additional Linux commands that have limited usage when used with the DR Series system CLI:
•
grep
•
more
While these Linux commands are available to the user, this topic and other topics related to these commands are not
intended to be a reference source for these commands. Dell recommends that you consult a Linux command reference
guide for more information about these commands and how they can be used.
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 PATTERN is an extended regular expression
-F, --fixed-strings PATTERN is a set of newline-separated strings
-G, --basic-regexp PATTERN is a basic regular expression
-P, --perl-regexp PATTERN is a Perl regular expression
-e, --regexp=PATTERN use PATTERN as a regular expression
-f, --file=FILE obtain PATTERN from FILE
-i, --ignore-case ignore case distinctions
-w, --word-regexp force PATTERN to match only whole words
-x, --line-regexp force PATTERN to match only whole lines
-z, --null-data a data line ends in 0 byte, not newline
Miscellaneous:
-s, --no-messages suppress error messages
-v, --invert-match select non-matching lines
-V, --version print version information and exit
--help display this help and exit
--mmap use memory-mapped input if possible
Output control:
-m, --max-count=NUM stop after NUM matches
-b, --byte-offset print the byte offset with output lines
-n, --line-number print line number with output lines
--line-buffered flush output on every line
149