Skip to content

Instantly share code, notes, and snippets.

@hussius
Created December 18, 2015 12:16
Show Gist options
  • Save hussius/b64e3c920bce6f087951 to your computer and use it in GitHub Desktop.
Save hussius/b64e3c920bce6f087951 to your computer and use it in GitHub Desktop.
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