Some bash stuff

awk

awk ‑F: 'OFS="-" { print $1 $3 $NF }' /etc/passwd

fortune | awk '{ print toupper($0) }'

awk '$1 ~ foo { print $3 }'

awk by example