Hi guys
I have a several thousands line file in the following format:
n817
--------------------------------------------------
n842
--------------------------------------------------
n877
--------------------------------------------------
n513
/bb/data/rmt2db.lrl:JBSKDB 31915 75
/bb/data/rmt3db.lrl:RELFUDB 19263 75
--------------------------------------------------
n943
--------------------------------------------------
n944
--------------------------------------------------
n655
/bb/data/rmtdb.lrl:ARBITDB 2672 75
--------------------------------------------------
Is there a way to extract ONLY the lines which contain
".lrl" entry together with the node above it, so the output will looks like this :
n513
/bb/data/rmt2db.lrl:JBSKDB 31915 75
/bb/data/rmt3db.lrl:RELFUDB 19263 75
--------------------------------------------------
n655
/bb/data/rmtdb.lrl:ARBITDB 2672 75
--------------------------------------------------
Thanks a lot for any advice. -A