Skip to content

Instantly share code, notes, and snippets.

@pifantastic
Created November 4, 2009 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pifantastic/226187 to your computer and use it in GitHub Desktop.
Save pifantastic/226187 to your computer and use it in GitHub Desktop.
import fileinput
for file in files:
for n,line in enumerate(fileinput.FileInput(file, inplace=1)):
if n == 0: print "HEADER"
print line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment