Created
August 2, 2016 18:23
-
-
Save psd/a88bd35cc2b0fbd95ed79c9dfa3250bb to your computer and use it in GitHub Desktop.
Read a TSV file looking for names with double-quotes
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
#!/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