Hi, all,
The following commands could compute the 10 most frequent bigrams from a input sequence which is in a file infile.
I would like to know whether there is somebody who can use only two unix commands to do the same work.
--------------------
tr " " "\012*" <infile >out1
tail +2 out1 > out1.new
paste out1 out1.new|sort |uniq -c|sort -r|head -10
--------------------
Thanks in advance.