bash - Cutting / Formatting a docker service command -


sorry imprecise title i'm working on simpliest way cut this:

docker service ls

into this:

docker service ls cutted

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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -