Skip to content

Instantly share code, notes, and snippets.

@vmesel
Created December 15, 2017 16:55
Show Gist options
  • Select an option

  • Save vmesel/f38eb4911034fd04cadb4526271e5cf1 to your computer and use it in GitHub Desktop.

Select an option

Save vmesel/f38eb4911034fd04cadb4526271e5cf1 to your computer and use it in GitHub Desktop.
arqin = open('arq-teste.txt','r')
arqout = open('arquivo-2','w+')
for l in arqin:
ls = l.split(';')
if ls[0].startswith('aug') == True and ls[1].startswith('Cc') == True:
arqout.write(l)
arqin.close()
arqout.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment