I have a file like this:
a10a
b20b
c50c
d10d
e30e
f10f
g20g
I want to print only the lines that have 10 in them and are immmediately followed by a line containing 20. My output for this should be:
a10a
b20b
f10f
g20g
Can you help?
Thanks.
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.