[awk] Print selective columns and watch for changes | *NIX Tricks
Print columns 1, 5 and then 2, put a colon, and then print column 10 of a line that matches pattern from the file columns.txt: $ awk '/pattern/ {print $1, $5, $2, ": ", $10}' columns.txt . Protecting the special meaning of the single quotes and curly brac...