Last active
August 29, 2015 14:23
-
-
Save jackross/398bc1058fe34540cf84 to your computer and use it in GitHub Desktop.
Data Exploration Ideas
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
sort -uf \ | |
<(cut -d'|' -f2 growers_20150608.txt) \ | |
<(cut -d'|' -f3 growers_20150608.txt) \ | |
>! names.txt |
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
# 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