Data file access on different path (drive)

Marco Atzeri marco.atzeri@gmail.com
Mon Nov 23 10:19:00 GMT 2015


On 23/11/2015 11:11, Lester Anderson wrote:
> Tested the change:
> ruta_elev="/cygdrive/q/geophys/Potential-field
> datasets/Topography/topo_17.1.img"
> ruta_grav="/cygdrive/q/geophys/Potential-field datasets/Gravity/grav.img.23.1"
>
> No errors reported for the path but..
> $ bash test4.sh
> -12 0 28 39
> img2grd: Syntax error: More than one world image file name given.
> img2grd: Syntax error: More than one world image file name given.
>
> There are only one file to read in each directory as listed in the
> path so not sure why it is confused!
>

there is a space in the path, so bash see two separated names

ruta_grav="/cygdrive/q/geophys/Potential-field 
datasets/Gravity/grav.img.23.1"

try renaming the directory from
  "Potential-field datasets" to "Potential-field_datasets"




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list