Skip to content

Instantly share code, notes, and snippets.

@beauvais
Created February 24, 2012 13:55
Show Gist options
  • Save beauvais/1901080 to your computer and use it in GitHub Desktop.
Save beauvais/1901080 to your computer and use it in GitHub Desktop.
partial email match
#! /usr/bin/python
import sys
import csv
import re
csv.writer(open('out.csv', 'wb'),).writerows(row for row in csv.reader(open('in.csv', 'rb')) if len(row) >= 6 and "gmail" in row[5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment