1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
''' Removes timestamp and line info from a webgl log ''' import os, sys lines = sys.stdin.read().split('\n') for line in lines: if line.startswith('['): line = line[15:] if line.startswith(('[', ']')): line = line.split('@')[0] print line