Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. spike4000

    Print lines if 1line has pattern and immediately followed by next ptrn

    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.

Part and Inventory Search

Back
Top