Sorry for the imprecise title but i'm actually working on the simpliest way to cut this:
Into this:
Tried with some -f but not working. Maybe with some grep/sed/cut stuff but i didnt find a satisfying way...
Thanks a lot for the time
You can use awk
docker service ls | awk -F" " '{print $2, $4}'