1 2 3 4 5 6 7 8 9
#!/usr/bin/python import sys from os import * for filename in sys.argv: if path.isfile(filename): fileInput = open(filename, "r") fileContent = fileInput.read() fileInput.close()