I have a command example,
which gives me all devices with their status as okay or error in the following format
[okay ]: you are listening on : 11 [error ]: not currently listening: 22 [error ]: not currently listening: 33 [okay ]: you are listening on : 111
I want to print only devices that has status as okay.
I tried using grep command as
device list | grep -r 'okay' device list | grep -r '[okay ]' device list | grep -r '^okay' device list | grep 'okay'
But it didn't print any output. How can I print the devices with status as okay.
Thanks in advance.