Created
March 26, 2014 10:29
-
-
Save almog/9780446 to your computer and use it in GitHub Desktop.
Extract streetnames from an OpenStreetMaps osm file
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
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