Created
October 7, 2015 05:06
-
-
Save cjwinchester/4f612c7365661df1168d to your computer and use it in GitHub Desktop.
Fetch Nebraska baby name data file from the Social Security Administration (1910-present), convert to JSON.
This file contains hidden or 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
| #!/bin/bash | |
| wget http://www.ssa.gov/oact/babynames/state/namesbystate.zip -O baby_names_by_state.zip | |
| unzip baby_names_by_state.zip NE.TXT | |
| sed -e '1i\state,sex,year,name,count' NE.TXT | csvcut -c sex,year,name,count | csvjson > ne-babies.json | |
| rm NE.TXT baby_names_by_state.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment