Sorry, obviously didn't read your question properly.
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.
_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1fbjAwOUE&hl=en
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
Other lists
-------------
Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce
Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science
kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general