348
grep
Description
This command retrieves the specified file and outputs lines containing the specified pattern.
Input mode
SP administrator mode
Syntax
grep [
<option>
]
<PATTERN>
<filename>
Parameters
<option>
:
-i
: Retrieves a file without distinguishing between upper-case and lower-case
letters.
-n
: Inserts the line number at the beginning of each line in the retrieved result.
-c
: Displays the number of lines containing the pattern.
<PATTERN>
:
Specifies the search string.
<filename>
:
Specifies the name of the file to be searched.
Display example:
# less test.txt
12345678790
AAAAAAAAAAA
BBBBBBBBBBB
CCCCCCCCCCC
DDDDDDDDDDD
EEEEEEEEEEE
FFFFFFFFFFF
:
# grep
ٛ
"123" test.txt
12345678790
Notes
Command line completion using wildcards, regular expressions, and tab input is not
supported to specify
<filename>
. Wildcards and regular expressions can be used to
specify
<PATTERN>
.
Special characters below cannot be used to specify
<filename>
.
Special characters that cannot be used to specify <filename>
#
Model name
Symbol
Code
1
Double quotation mark
"
0x22
2
Ampersand
&
0x26
Summary of Contents for GX1000-SMC013X
Page 94: ...94 5 Configuration Guide 5 1 Base Software Configuration Guide ...
Page 105: ...105 7 Access Lists 7 1 Access lists ...
Page 153: ...153 8 Policy Based Switching 8 1 Policy based switching ...
Page 165: ...165 9 Policy Based Routing 9 1 Policy based routing ...
Page 177: ...177 Figure 10 1 Overview of mode transitions ...
Page 213: ...213 17 MIB Reference 17 1 Private MIBs 17 2 Supported MIB Traps ...
Page 229: ...229 H W BOOT 11 44 MISC 1 0 SPCT 0 34 10 The updating of the SP files is finished ...
Page 451: ...451 28 Additional Information ...