How to get the second column from command output?
This should work to get a specific column out of the command output "docker images":
REPOSITORY TAG IMAGE ID CREATED SIZEubuntu 16.04 12543ced0f6f 10 months ago 122 MBubuntu latest 12543ced0f6f 10 months ago 122 MBselenium/standalone-firefox-debug 2.53.0 9f3bab6e046f 12 months ago 613 MBselenium/node-firefox-debug 2.53.0 d82f2ab74db7 12 months ago 613 MBdocker images | awk '{print $3}'IMAGE12543ced0f6f12543ced0f6f9f3bab6e046fd82f2ab74db7
This is going to print the third column