How can I print lines muitil patterns which meet a condition?
For instance for an input file
partially containing the following:
ID : 1
Status : Ok
Name : Lulu
Age : 18
State : US
ID : 2
Status : Ok
Name : Master Yi
Age : 22
State : UK
Codition :
IF [Name == Master Yi] | print
ID : 2
Status : Ok
Name : Master Yi
Age : 22
State : UK
please help
Thanks