Skip to content

Instantly share code, notes, and snippets.

@cblanc
Created January 7, 2019 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cblanc/5d6300c8d2778da9bcc26beae481a966 to your computer and use it in GitHub Desktop.
Save cblanc/5d6300c8d2778da9bcc26beae481a966 to your computer and use it in GitHub Desktop.
Extract NL streetnames / postcodes
# Get raw dataset
wget https://s3.amazonaws.com/data.openaddresses.io/runs/554587/no/countrywide.zip
unzip countrywide.zip
# Extract street and postcode from CSV, get unique elements and stream to file
awk -F "\"*,\"*" '{print $4,$9}' countrywide/nl/countrywide.csv | uniq > nl-postcodes.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment