Created
December 18, 2015 12:16
-
-
Save hussius/b64e3c920bce6f087951 to your computer and use it in GitHub Desktop.
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
import sys | |
for line in open(sys.argv[1]): | |
if 'layer' in line: | |
fname = '_'.join(line.strip().split()) + '_activities.txt' | |
outf = open(fname,'w') | |
else: | |
outf.write(line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment