I would like to remove all the lines except for the |1751|141| line and |1753|142| line.
|7|126|53874
|7|127|0
|129|128|8 77876 0 0 0 1393542 1280 0 0
|129|130|8 77876 0 0 0 1393542 1280 0 0
|129|132|8 41703 0 0 0 756323 735 0 0
|1751|141|1...
Thanks Miller,
Worked like a charm. Your code was a lot more succinct than mine.
Now, I would like to submit a range of values for the BTS ID in the if() line that would only pull the records for that range. For example:
MC1900BTS#### - MC1900BTS####
I need to extract records from a log file with the following format:
|O%:CCLN-1-CBS1:CELLS-1-CELLS1:MCBTS-1-MC1900BTS1183
line 1
line 2
line 3
. . .
#End
There are several of these logs within the log file and I need them all. There is a distinct header and footer for each log as outlined...
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.