5

Search string and print the above line and below lines?.

view full story
linux-howto

http://www.unix.com – if the first string matches then print the previous line and current line and also print the following lines if the other string search matches. Input ------ TranTime 2012 10 12 The Record starts here Accountnumber: 4632473431274 TxnCode 323 TranID 329473242834 ccsdkcnsdncskd wdededadlksadksadaskdsakd dadscczxczccc Balance 2000.00 TranTime 2012 10 13 The Record starts here Accountnumber: 5435478454 TxnCode 312 TranID 5634875438 Balance 4000.00 csdhcsdjcsdcsdcnskjcjsdkjsdj TranTime 2012 10 15 The Record starts here Accountnumber: 31231231232 TxnCode 212 sdjhcsdj (HowTos)