
28 Feb
2010
28 Feb
'10
3:21 a.m.
Thanks a bunch Rsohan :) and Micheal. Michael, the awk script did it in a breeze. Rsohan, there's some glitch in the bash script. It gives an output in the form: *123456780 0 123456781 1 123456782 1 123456780 1 123456781 0 123456782 1* A quick grep & word count does not yield a count similar to what the other two approaches gave. Also, the script takes a tad too long to execute :). I believe some fine tuning should hack it. Thanks, Tony.