I have to find and print only matched strings of a line in file using grep command.
Below is example text:
04-06-2013 INFO blah blah blah blah Param : 39 another text Ending the line.
05-06-2013 INFO blah blah allah line 2 ending here with Param : 21.
I want output to be printed as below after grep command
04-06-2013 INFO Param : 39
04-06-2013 INFO Param : 21
I tried grep command with -o option and regex '.*INFO'. I was successful to print both the text separately in different grep commands where as i want this in single command.
Thanks in Advance.