[Time: 2017/04/03 07:27:30.048] [comp_ctrl]: Connecting to server......
[Time: 2017/04/03 07:27:30.739] [comp_ctrl]: Connected to server.
[Time: 2017/04/03 07:27:30.739] [comp_ctrl]: Execute list collabrations operation......
The collaboration name: The status:
BooleanExpression1234 ACTIVE
BooleanExpression1235` INACTIVE
There are total 2 collabrations listed.
For the above input,I want a shell program to output like below removing all other characters(finally output i require is to get the first column values which are only in INACTIVE status in second column) File used to input will have multiple records.
BooleanExpression1234 ACTIVE
BooleanExpression1235 INACTIVE
I tried to get remove the unwanted contents through awk but not really working.
grep INACTIVE file? Please edit your question and clarify. And also mention your operating system.