Help: syntax error in shell script

Dave Davey daved at physiol.su.oz.au
Tue Jun 11 22:41:49 AEST 1991


In <1991Jun10.145413.48155 at ccvax.ucd.ie> cdohert at ccvax.ucd.ie writes:

->Hi Unix Wizards,
->I am attempting to write my first shell script and I'm perplexed
->by the error message I'm getting from the shell parser.
->The script is as follows

->for network in 1 2 3 5 10 20 30
->do
->     `expulse` $network 0
->     if test -f pulse.${network}.net
->     then `cascor1.3` <<!
->         pulse.${network}.net
	......
	......
	......
	......
	......
->         !
         ^^^^^
	 The indent may look pretty, but the shell is looking for a line
	 starting with a '!', not white space.



More information about the Comp.unix.questions mailing list