Message126194
| Author |
wrobell |
| Recipients |
MizardX, eric.araujo, nadeem.vawda, pitrou, rhettinger, wrobell, xuanji |
| Date |
2011年01月13日.19:50:48 |
| SpamBayes Score |
0.01533388 |
| Marked as misclassified |
No |
| Message-id |
<1294948250.93.0.0287434509288.issue5863@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
A use case
wget -O http://planet.openstreetmap.org/planet-110112.osm.bz2 | tee planet.bz2 | osm2sql | psql osm
planet-*osm.bz2 files are 14GB at the moment. it would be great to read them from stdin while downloading from a server and uploading to a database at the same time.
Of course, you can insert "bzip2 -d" into the pipe... but then why to bother with bz2 module in Python? ;) |
|