Skip to content

Instantly share code, notes, and snippets.

@jackross
Last active August 29, 2015 14:23
Show Gist options
  • Save jackross/398bc1058fe34540cf84 to your computer and use it in GitHub Desktop.
Save jackross/398bc1058fe34540cf84 to your computer and use it in GitHub Desktop.
Data Exploration Ideas
sort -uf \
<(cut -d'|' -f2 growers_20150608.txt) \
<(cut -d'|' -f3 growers_20150608.txt) \
>! names.txt
# if 'last' is any sequence of A-z
# and 'first' is any sequence of A-z
# and 'm' is a single letter of A-z
# find names that match last, first m
cat names.txt | grep -iE '^[A-z]+, [A-z]+ [A-z]$'
# find names that match last, first m.
cat names.txt | grep -iE '^[A-z]+, [A-z]+ [A-z].$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment