BASH AWK
From Indie IT Wiki
HOWTO: AWK:
PRINT TABS
awk '{print FNR "\t" $1 "\t" $2}'
SEARCH A COLUMN
awk '/proftpd.*Login successful/{print $7}' secure |sort |uniq -c |sort -nr
awk '{print FNR "\t" $1 "\t" $2}'
awk '/proftpd.*Login successful/{print $7}' secure |sort |uniq -c |sort -nr