Skip to content

Instantly share code, notes, and snippets.

@ktechmidas
Last active April 4, 2017 16:45
Show Gist options
  • Save ktechmidas/ed8246bee2d534795f7e67486b42091b to your computer and use it in GitHub Desktop.
Save ktechmidas/ed8246bee2d534795f7e67486b42091b to your computer and use it in GitHub Desktop.
def readlog():
log = open('./seaflog')
loglines = log.read()
for line in loglines:
print line.split()
OUTPUT:
['t']
['e']
['s']
['t']
['8']
['0']
['2']
['.']
['i']
['b']
['b']
['c']
['l']
['o']
['u']
['d']
['.']
['n']
['e']
['t']
FILE:
test802.example.net test-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment