Fix sed quoting

This commit is contained in:
Tom Russell 2018-10-03 20:10:27 +01:00
parent f06b820d19
commit b73fb7118e

View File

@ -39,8 +39,8 @@ ogr2ogr \
#
find $mastermap_dir -type f -name '*.3857.csv' -printf "%f\n" | \
parallel \
sed -i 's/^"POLYGON/"SRID=3857;POLYGON/' $mastermap_dir/{}
sed -i "'s/^\"POLYGON/\"SRID=3857;POLYGON/'" $mastermap_dir/{}
find $mastermap_dir -type f -name '*.3857.csv' -printf "%f\n" | \
parallel \
sed -i 's/^"MULTIPOLYGON/"SRID=3857;MULTIPOLYGON/' $mastermap_dir/{}
sed -i "'s/^\"MULTIPOLYGON/\"SRID=3857;MULTIPOLYGON/'" $mastermap_dir/{}