]> gitweb.michael.orlitzky.com - dead/census-tools.git/blob - filter-transactions
b0c14c37e458560585e55afe1d6281dcdf6c8ac0
[dead/census-tools.git] / filter-transactions
1 #!/bin/bash
2
3 # Remove all occurrences of the strings "BEGIN;" and "END;" from the
4 # input stream. As of Postgis v1.4.0, shp2pgsql inserts them once for
5 # every 250 "INSERT" statements.
6
7 sed s/"BEGIN;"//g |
8 sed s/"END;"//g