00001 import string
00002 import sys
00003
00004 def dictionary(filename,output):
00005 ''' this python script read a plain text dictionary, generate lower, upper and captial cases words into another file'''
00006 f = open(filename, 'r')
00007 g = open(output,'w')
00008 for line in f:
00009 cap = string.capitalize(line)
00010 low = string.lower(line)
00011 up = string.upper(line)
00012 g.write(low + up + cap)
00013
00014 if __name__ == "__main__":
00015 dictionary(sys.argv[1] , sys.argv[2])