When I run the following command on shell adb devices. It shows me a bunch of devices like
List of devices attached
10.16.95.35:5555 device
10.16.95.36:5555 offline
10.16.95.37:5555 device
10.16.95.38:5555 device
10.16.95.39:5555 device
10.16.95.40:5555 device
10.16.95.41:5555 offline
10.16.95.42:5555 device
10.16.95.43:5555 device
10.16.95.44:5555 device
I am trying to get only offline deviceIps as a list. So the output in this case I desire is 10.16.95.36,10.16.95.41
I was able to get just offline listed as through adb devices | grep offline
10.16.95.36:5555 offline
10.16.95.41:5555 offline
but i do not know how to process it further to get 10.16.95.36,10.16.95.41.