Awk
Notes # Awk Notes Resources # Official project Awk Power and Promise Tutorials # The GNU Awk User’s Guide Written by the maintainer Understanding Awk * Debugging # AWK REPL
Notes # Awk Notes Resources # Official project Awk Power and Promise Tutorials # The GNU Awk User’s Guide Written by the maintainer Understanding Awk * Debugging # AWK REPL
Printing # In Awk each line is a record and each column is a field. You can print the whole line or individual fields like so. i[akraker@localhost:~/awk]$ echo "one two three" | awk '{ print }' one two three i[akraker@localhost:~/awk]$ echo "one two three" | awk '{ print $1 }' one i[akraker@localhost:~/awk]$ echo "one two three" | awk '{ print $2 }' two i[akraker@localhost:~/awk]$ echo "one two three" | awk '{ print $3 }' three Note, fields aren’t 0 indexed and start at 1. ...