bash - Cutting / Formatting a docker service command -
sorry imprecise title i'm working on simpliest way cut this:
into this:
tried -f not working. maybe grep/sed/cut stuff didnt find satisfying way...
thanks lot time
you can use awk
docker service ls | awk -f" " '{print $2, $4}'
Comments
Post a Comment