Friday, October 29, 2010

grep inside vim

The vim now has built-in grep command. To see all the results, just type :copen

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?