This is a script which looks for .tab files in a folder an should imports them withogr2ogr, but I fail with the correct bracing.for i in $( ls *.tab )do  echo item: $i  ogr2ogr -f PostgreSQL -s_srs EPSG:21781 -t_srs EPSG:4326 -overwrite \          -nln $TBL_NAME PG:'host=localhost user='$DBUSER' dbname='$DBNAME'' $idoneAnd I need a command line to execute the ogr2ogr section in this way:ogr2ogr -f PostgreSQL -s_srs EPSG:21781 -t_srs EPSG:4326 -overwrite \        -nln geom_tour PG:host=localhost user=postgres dbname=gis DMC_34093.tab 
Shell script to execute a command with iteration
shell;shell script
Should be:for i in *.tabdo  echo item: $i  ogr2ogr -f PostgreSQL -s_srs EPSG:21781 -t_srs EPSG:4326 -overwrite -nln $TBL_NAME PG:host=localhost user=\'${DBUSER}\' dbname=\'${DBNAME}\' $idoneYou need to use double quotes to let the shell expand variables like ${DBUSER} inside.Note for i in *.tab instead of for i in $(ls *.tab). Don't parse the output of ls, all it does is mangle file names with spaces and other special characters.