Skip to content

Instantly share code, notes, and snippets.

@almog
Created March 26, 2014 10:29
Show Gist options
  • Save almog/9780446 to your computer and use it in GitHub Desktop.
Save almog/9780446 to your computer and use it in GitHub Desktop.
Extract streetnames from an OpenStreetMaps osm file
cat map*.osm \
| grep -P "k=\"addr:street\" v=\"(.*)\"" \
| sed -E "s/.*addr:street\" v=\"(.*)\".*/\1/" \
| sort -u > streets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment