Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!tcdcs!ccvax.ucd.ie!cdohert From: cdohert@ccvax.ucd.ie Newsgroups: comp.unix.questions Subject: Help: syntax error in shell script Message-ID: <1991Jun10.145413.48155@ccvax.ucd.ie> Date: 10 Jun 91 14:54:13 GMT Organization: University College Dublin Lines: 34 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}.output fi done ****************************************************************** #`expulse` & `cascor1.3` are programs that take various arguments. prompt>sh script results in the error: line 22 `end of file' unexpected. My question is why? Probably elementary error but any pointers welcome. Conor Doherty Dept of Computer Science University College Dublin