4-22
Compaq AlphaServer ES40 Service Guide
4.9
grep
The grep command is very similar to the UNIX grep command. It
allows you to search for “regular expressions”—specific strings of
characters—and prints any lines containing occurrences of the strings.
Using grep is similar to using wildcards.
Example 4–7 grep
P00>>> show fru | grep PCI
SMB0.CPB0.PCI1 0 DE500-BA Network Cont
SMB0.CPB0.PCI4 0 DEC PowerStorm
SMB0.CPB0.PCI5 0 NCR 53C895
P00>>>
In Example 4–7 the output of the show fru command is piped into grep (the
vertical bar is the piping symbol), which filters out only lines with “PCI.”
Grep supports the following metacharacters:
^
Matches beginning of line
$
Matches end of line
.
Matches any single character
[ ]
Set of characters; [ABC] matches either ’A’ or ’B’ or ’C’; a dash (other than first or
last of the set) denotes a range of characters: [A-Z] matches any uppercase letter;
if the first character of the set is ’^’ then the sense of match is reversed: [^0-9]
matches any non-digit; several characters need to be quoted with backslash (\) if
they occur in a set: ’\’, ’]’, ’-’, and ’^’
*
Repeated matching; when placed after a pattern, indicates that the pattern
should match any number of times. For example, ’[a-z][0-9]*’ matches a lowercase
letter followed by zero or more digits.
+
Repeated matching; when placed after a pattern, indicates that the pattern
should match one or more times ’[0-9]+’ matches any non-empty sequence of
digits.
?
Optional matching; indicates that the pattern can match zero or one times. ’[a-
z][0-9]?’ matches lowercase letter alone or followed by a single digit.
\
Quote character; prevent the character that follows from having special meaning.
Содержание AlphaServer ES40
Страница 4: ......
Страница 16: ......
Страница 20: ......
Страница 68: ......
Страница 104: ......
Страница 162: ......
Страница 170: ...5 8 Compaq AlphaServer ES40 Service Guide Figure 5 4 FRU List Designator ...
Страница 172: ...5 10 Compaq AlphaServer ES40 Service Guide Figure 5 5 Evidence Designator ...
Страница 184: ...5 22 Compaq AlphaServer ES40 Service Guide Figure 5 7 Display Error Frames Screen ...
Страница 193: ...Error Logs 5 31 Figure 5 14 Deleting an Old Error Frame ...
Страница 194: ......
Страница 280: ......
Страница 292: ...8 12 Compaq AlphaServer ES40 Service Guide Figure 8 4 Enclosure Panel Removal Pedestal 1 2 PK0234 ...
Страница 298: ...8 18 Compaq AlphaServer ES40 Service Guide Figure 8 7 Covers on the System Chassis Tower PK0216 5 4 3 1 2 2 2 1 ...
Страница 299: ...FRU Removal and Replacement 8 19 Figure 8 8 Covers on the System Chassis Pedestal Rack PK0215 1 4 5 3 2 1 2 ...
Страница 300: ...8 20 Compaq AlphaServer ES40 Service Guide 8 5 Power Supply Figure 8 9 Removing a Power Supply 5 4 3 2 PK0232a 1 ...
Страница 302: ...8 22 Compaq AlphaServer ES40 Service Guide 8 6 Fans Figure 8 10 Replacing Fans Unlock Lock 5 6 1 2 3 4 PK0208 ...
Страница 304: ...8 24 Compaq AlphaServer ES40 Service Guide 8 7 Hard Disk Drives Figure 8 11 Removing a Hard Drive PK0938a 1 2 ...
Страница 310: ...8 30 Compaq AlphaServer ES40 Service Guide Figure 8 14 Aligning DIMM in MMB PK0953a ...
Страница 314: ...8 34 Compaq AlphaServer ES40 Service Guide 8 11 OCP Assembly Figure 8 16 Removing the OCP Assembly 1 2 PK0282 ...
Страница 318: ...8 38 Compaq AlphaServer ES40 Service Guide 8 13 Floppy Drive Figure 8 18 Removing the Floppy Drive 1 2 3 4 4 5 PK0281 ...
Страница 324: ...8 44 Compaq AlphaServer ES40 Service Guide Figure 8 21 Removing the PCI Backplane PK0280 3 1 2 2 4 1 ...
Страница 332: ......
Страница 336: ......
Страница 358: ......
Страница 444: ......