[postgis-users] importing shapefile error

Mike Toews mwtoews at gmail.com
Wed Feb 15 13:36:16 PST 2012


On 16 February 2012 10:17, Zelio Fernandes <zelio.fern at gmail.com> wrote:
> zelio at zelio-desktop:~$ /usr/lib/postgresql/9.1/bin/shp2pgsql -s 4326 -i -I
> /home/zelio/Desktop/Final(2)/FOREST.shp public.FOREST | psql -d prakasam
> bash: syntax error near unexpected token `('
> zelio at zelio-desktop:~$

This has nothing to do with PostGIS; it is a syntax error in BASH due
the '(' and ')'. The normal practice to naming file path arguments is
to use double quotes around files, e.g.
command "some file(2).shp"

More info:
http://www.gnu.org/software/bash/manual/bashref.html#Quoting

-Mike



More information about the postgis-users mailing list