Skip to content

Instantly share code, notes, and snippets.

@cjwinchester
Last active March 21, 2018 15:54
Show Gist options
  • Save cjwinchester/6fff4d3e404fba89f1d3d276982935e4 to your computer and use it in GitHub Desktop.
Save cjwinchester/6fff4d3e404fba89f1d3d276982935e4 to your computer and use it in GitHub Desktop.
curl -LJO https://www2.census.gov/geo/docs/reference/codes/files/national_places.txt; grep -i "lucy" national_places.txt > lucy.txt; grep -i "julian" national_places.txt > julian.txt; grep -i "cody" national_places.txt > cody.txt; grep -i "laurel" national_places.txt > laurel.txt; curl -LJO https://www2.census.gov/geo/tiger/TIGER2017/PRIMARYROADS/tl_2017_us_primaryroads.zip; unzip tl_2017_us_primaryroads.zip; ogr2ogr -f 'CSV' tl_2017_us_primaryroads.csv tl_2017_us_primaryroads.dbf; grep -i "lucy" national_places.txt >> lucy.txt; grep -i "julian" national_places.txt >> julian.txt; grep -i "cody" national_places.txt >> cody.txt; grep -i "laurel" national_places.txt >> laurel.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment