Last active
April 4, 2017 16:45
-
-
Save ktechmidas/ed8246bee2d534795f7e67486b42091b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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