Hi,
I need advice on a simiple pattern check,
Orginal Code
bpimagelist -backupid xxxxxxxxxxxxx | grep "FRAG " | egrep -i "C5|W5" | awk 'NR==1{print $2,$9}
1 MAC514
What i want is to find any media beinging with C5|W5. I have tried ^C5|^W5, but this does not work.
Removed the awk 'NR==1
bpimagelist -backupid xxxxxxxxxxxxx | grep "FRAG " | egrep -i "C5|W5" | awk '{print $2,$9}'
1 MAC514
1 MAC514
2 W5A716
Can you tell me how can modify the egrep pattern, to only check for ^C5|^W5.
So i should get = 2 W5A716
Thanks