Script started on Tue Aug 9 13:36:08 2011 complex% python tcomp1.py usage: python tcomp1.py filename word file1name file2name ... complex% python tcomp1.py tc1.dat blah tc2.dat tc3.dat The word " blah " occurs 3 times in file " tc1.dat " >>> The word " blah " occurs 1 times in file " tc2.dat " >>> The word " blah " occurs 4 times in file " tc3.dat " File " tc3.dat " is most similar to file " tc1.dat " complex% python tcomp1.py tc3.dat blag tc1.dat tc2.dat The word " blag " occurs 0 times in file " tc3.dat " >>> The word " blag " occurs 0 times in file " tc1.dat " >>> The word " blag " occurs 0 times in file " tc2.dat " File " tc1.dat " is most similar to file " tc3.dat " complex% python tcomp1.py tc1.dat bologna tc2.dat tc3.dat The word " bologna " occurs 1 times in file " tc1.dat " >>> The word " bologna " occurs 0 times in file " tc2.dat " >>> The word " bologna " occurs 4 times in file " tc3.dat " File " tc2.dat " is most similar to file " tc1.dat " complex% python tcomp1.py tc1.dat rhubarb tc2.dat tc3.dat The word " rhubarb " occurs 4 times in file " tc1.dat " >>> The word " rhubarb " occurs 3 times in file " tc2.dat " >>> The word " rhubarb " occurs 1 times in file " tc3.dat " File " tc2.dat " is most similar to file " tc1.dat " complex% python tcomp1.py tc1.dat cabbage tc2.dat tc3.dat The word " cabbage " occurs 0 times in file " tc1.dat " >>> The word " cabbage " occurs 1 times in file " tc2.dat " >>> The word " cabbage " occurs 0 times in file " tc3.dat " File " tc3.dat " is most similar to file " tc1.dat " complex% ^D Script done on Tue Aug 9 13:38:17 2011