Hi,
Jim is not right.
"^ " - line begins with space
"[^][^]" - line contains NOT only ], [, ^
"*" - line contains some letters
hdisk3 10-60-00-11,0 16 Bit LVD SCSI Disk Drive (9100 MB)
FRU Number..................34L7393
Serial Number...............F806826E
Part Number.................34L7387
hdisk4 10-60-00-12,0 16 Bit LVD SCSI Disk Drive (9100 MB)
FRU Number..................07N3778
Serial Number...............4DGRE695
Part Number.................07N3821
The regular expression looks to me like:
Either the line contains:
[ul]
[li]FRU Number
[li]Serial Number
[li]Part Number
[li]An anchor to the start of the line, followed by 2 spaces, followed by one non-space, followed by zero or more non-spaces. In other words - an anchor to the start of the line, followed by 2 spaces, followed by one or more non spaces (egrep does not have the equivalent of the '+' metacharacter).
[/ul]
Hope this helps, cheers, Neil
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.