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...
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.