[OSM-dev] Planet Dump Timings
Martijn van Oosterhout
kleptog at gmail.com
Sun Sep 9 12:27:41 BST 2007
On 9/9/07, Brett Henderson <brett at bretth.com> wrote:
> > 00000070 22 4b 72 6f 6e 70 72 69 6e 73 65 73 73 65 20 4d |"Kronprinsesse M|
> > 00000080 c3 a4 72 74 68 61 73 20 61 6c 6c c3 a9 22 20 2f |..rthas all.." /|
> > Which is correct. So the planet dump is doing the right thing anyway.
> > Have a nice day,
> Cool, thanks for that. less was the only thing I knew of for viewing
> huge files, I'll check out od.
Err, I didn't use od for this one and it won't handle big files. What I did was:
$ bzcat planet-070905.osm.bz2 |sed -u -n '/<node
id="78270"/,/<.node>/p' |hexdump -C
It uses sed to cut out the relevent node from the planet file and
pipes it to hexdump. The -u is to make it so you see output sooner
(you can press ctrl-c once you've got what you want).
Have a nice day,
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
More information about the dev