vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
replaceall.py
Go to the documentation of this file.
1 import sys
2 import os
3 def mymangle(s):
4 
5  if (len(s)>3):
6  return s[0:2]+s[2].upper()+s[3].upper()+s[4:]
7  else:
8  return s[0:len(s)-1]+s[len(s)-1].upper()
9 for i in sys.argv[1:]:
10  j=mymangle(i);
11  os.system ("./replace "+i+" "+j+" "+sys.argv[1]+" "+sys.argv[1]);