Skip to content

Instantly share code, notes, and snippets.

@fnielsen
Created July 15, 2011 00:27
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 fnielsen/1083801 to your computer and use it in GitHub Desktop.
Save fnielsen/1083801 to your computer and use it in GitHub Desktop.
pløf 5
import itertools,sys
t=[open(f).read().strip().split("\n")for f in sys.argv[1:]]
for l in itertools.zip_longest(*t,fillvalue=""):print(" ".join([l[n].ljust(max(map(len,t[n])))for n in range(len(l))]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment