Created
August 2, 2016 18:19
-
-
Save psd/c9162008d368fc476e09510a6a17cfc8 to your computer and use it in GitHub Desktop.
Read a TSV file which may contain 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