mirror of
https://github.com/clearlinux/docs.git
synced 2026-11-21 13:32:56 +00:00
Add slightly better 'awk' condition
This commit is contained in:
@@ -13,7 +13,7 @@ echo
|
||||
docker run --rm hello-world
|
||||
echo
|
||||
echo '$ docker images hello-world'
|
||||
docker images hello-world | awk -F' +' '$2 == "TAG" || $2 == "latest" { print $1"\t"$2"\t"$3"\t"$5 }' | column -t -s$'\t'
|
||||
docker images hello-world | awk -F' +' 'NR == 1 || $2 == "latest" { print $1"\t"$2"\t"$3"\t"$5 }' | column -t -s$'\t'
|
||||
} | sed 's/^/\t/'
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user