BASH AWK

From Indie IT Wiki
Jump to: navigation, search

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