Title: blankrem.py Author: Anonymous Pastebin link: http://pastebin.com/ry8jqe11 First Edit: Friday 27th of December 2013 08:53:15 PM CDT Last Edit: Friday 27th of December 2013 08:53:15 PM CDT # to run: python   from sys import argv from os.path import isfile for arg in argv:     if isfile(arg):         with open(arg,"r") as _in:             text = _in.read()             while "\n\n" in text:                 text = text.replace("\n\n","\n")             extstart = arg.rfind('.')             newname = arg[:extstart]+"_noblanks"+arg[extstart:]             with open(newname,"w") as out:                 out.write(text)     else:         print "no such file "+arg