Created
August 6, 2014 14:59
-
-
Save mbarton/aecf158836a3530b90c7 to your computer and use it in GitHub Desktop.
Make a single log file readable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import fileinput | |
import sys | |
for line in fileinput.input(): | |
split_line = line.split(" ") | |
sys.stdout.write("%s %s %s" % (split_line[0], split_line[1], " ".join(split_line[4:]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment