Shell scripts

Tim Szeliga tim at
Wed Dec 1 12:18:35 EST 1993

> I cant get a shell script to work.  This one is supposed to execute
> for several hundred files
> #!/bin/sh
> for FILENAME in 'ls /u1/copeland/rams3a/van/*00'
> do
> input=/u1/copeland/rams3a/van/$FILENAME output=$FILENAME
> done
> when executed I get the following error message
> _____________________________
> Sorry </u1/copeland/rams3a/van/PTOTAL-07-15-00> is not a valid option

Looks like you're using forward ticks ' instead of back ticks `,
so for is treating ls and /u1/... as members of a list.

More information about the grass-dev mailing list