Bash ~ Perl ~ Python ~ Batch ~ Ruby
Wednesday, 28 August 2013
number of occurance of word in a column using ( awk)
cat /etc/passwd | gawk -F":" '{ ip[$1]++ } END {for ( i in ip ) {print i,"access",ip[i]}}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment