skip to main
|
skip to sidebar
tiny thoughts
Sunday, October 10, 2010
guess the awk(gawk) command
gawk '{ if ( $1 ~ /start/) { print "process start!" ; for ( i in freq) {print i, freq[i] } delete freq } else freq[$1]++ }' tmp.out > new.out
What did it do?
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2013
(3)
►
August
(1)
►
July
(1)
►
March
(1)
►
2011
(1)
►
January
(1)
▼
2010
(25)
►
December
(1)
►
November
(1)
▼
October
(2)
grep inside vim
guess the awk(gawk) command
►
September
(2)
►
August
(2)
►
July
(7)
►
June
(3)
►
May
(1)
►
March
(3)
►
February
(1)
►
January
(2)
►
2009
(135)
►
November
(10)
►
October
(5)
►
September
(10)
►
August
(19)
►
July
(13)
►
June
(16)
►
May
(23)
►
April
(28)
►
March
(11)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.