netbackup1234
Programmer
Hi
I have file like following ..
RSB995 Private
RSB999 Private
RSD013 Private
RSD022 Private
RSD070 Private
RSD083 Private
RSD094 Private
RSD163 Private
SC7387 Private
SC7397 Private
SC8122 Private
SC8175 Private
SC8212 Private
SC8250 Private
SC8251 Private
SC8290 Private
SC8405 Private
When pattern matches SC8290 , print all pervious 10 lines.
How can this be done using awk ?
I have file like following ..
RSB995 Private
RSB999 Private
RSD013 Private
RSD022 Private
RSD070 Private
RSD083 Private
RSD094 Private
RSD163 Private
SC7387 Private
SC7397 Private
SC8122 Private
SC8175 Private
SC8212 Private
SC8250 Private
SC8251 Private
SC8290 Private
SC8405 Private
When pattern matches SC8290 , print all pervious 10 lines.
How can this be done using awk ?