Awk

From Bonus Bits
Jump to: navigation, search

Description

This article gives awk cli command examples in BASH.


Examples

docker images | grep '^<none>' | awk '{print $3}' | xargs -n1 docker rmi
echo "Hello.world" | awk -F"." '{print "STR1="$1", STR2="$2 }'
STR1=Hello, STR2=world