Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!metro!physiol.su.oz.au!daved From: daved@physiol.su.oz.au (Dave Davey) Newsgroups: comp.unix.questions Subject: Re: Help: syntax error in shell script Message-ID: <1770@physiol.su.oz.au> Date: 11 Jun 91 12:41:49 GMT References: <1991Jun10.145413.48155@ccvax.ucd.ie> Organization: Physiology Dept., Univ. of Sydney, NSW, Australia Lines: 22 In <1991Jun10.145413.48155@ccvax.ucd.ie> cdohert@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.