Hi,
I've a weird problem to be solved. Assume i have a file like this:
- <timestamp> UID: 12345 <junk> DevID: V123
- <timestamp>DevID: V123 <junk> DuID: VP
- ...
- ....
- <timestamp> UID: 789 <junk> DevID: S456
- <timestamp>DevID: S456 <junk> DuID: VP....
- .....
Say if i search for "VP", the output should look like
<timestamp> UID: 12345 DevID: V123 DuID: VP
<timestamp> UID: 789 DevID: S456 DuID: VP
Similarly I should do this for last 20 occurrences of "VP".
I need a command which gets the above result
Appreciate your help