#!/bin/sh awk "BEGIN { FS = \"\t\"; getline cntry < \"/dev/stdin\"} \$1 == cntry { printf(\"\nCountry: %s\n\ Continent: %s\n\ITU Zone: %s\nCQ Zone: %s\nTime Zone: %s\n\ Latitude: %s\n\Longitude: %s\n\n\", \$1, \$2, \$3, \$4, \$5, \$6, \$7) } " ~/datafiles/country.tab .