I'm trying to print the previous line, if a line has the word "OFFLINE" in it. Here is an example....
Store 0101
Store 0102
State : OFFLINE
Store 0103
Store 0104
Store 0105
State : OFFLINE
I would like to print out STORE 0102 and STORE 0105 since those are the lines directly above the lines that contain OFFLINE.
Any help would be greatly appreciated! Thanks.
Store 0101
Store 0102
State : OFFLINE
Store 0103
Store 0104
Store 0105
State : OFFLINE
I would like to print out STORE 0102 and STORE 0105 since those are the lines directly above the lines that contain OFFLINE.
Any help would be greatly appreciated! Thanks.