Skip to content

Instantly share code, notes, and snippets.

@psd
Created August 2, 2016 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psd/a88bd35cc2b0fbd95ed79c9dfa3250bb to your computer and use it in GitHub Desktop.
Save psd/a88bd35cc2b0fbd95ed79c9dfa3250bb to your computer and use it in GitHub Desktop.
Read a TSV file looking for names with double-quotes
#!/usr/bin/env python3
import sys
import csv
for row in csv.DictReader(sys.stdin, delimiter='\t'):
if '"' in row['name']:
print(row['name'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment