Dell PowerVault Storage Area Network Dell DR Series System Command Line Refere - Page 130

m, --max-count=NUM

Page 130 highlights

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 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 -v, --invert-match -V, --version --help --mmap suppress error messages select non-matching lines print version information and exit display this help and exit use memory-mapped input if possible 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 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' 130

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131

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
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
-H, --with-filename
print the filename for each match
-h, --no-filename
suppress the prefixing filename on output
--label=LABEL
print LABEL as filename for standard input
-o, --only-matching
show only the part of a line matching PATTERN
-q, --quiet, --silent
suppress all normal output
--binary-files=TYPE
assume that binary files are TYPE
TYPE is 'binary', 'text', or 'without-match'
130