awk

Pattern scanning and processing

← All commands

Common Examples

$ awk '{print $1}' file
$ awk -F: '{print $1}' /etc/passwd
$ awk '/pattern/ {print}' file
$ awk '{sum+=$1} END {print sum}' file