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.