![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unexpected error | helpme2008 | UNIX for Dummies Questions & Answers | 2 | 05-04-2008 03:08 PM |
| 'end of file' unexpected | srisreeku | Shell Programming and Scripting | 1 | 04-28-2008 03:39 PM |
| unexpected EOF | manna | UNIX for Advanced & Expert Users | 9 | 01-11-2008 06:56 PM |
| Unexpected Results | SSims | UNIX for Dummies Questions & Answers | 1 | 12-19-2007 05:55 PM |
| 'end of file' unexpected | abhijeetkul | Shell Programming and Scripting | 4 | 04-10-2006 07:42 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
hello everyone...im having this problem with unexpected EOF with line 85 which is..i cant see whats wrong with it..can any1 plz help me out.
read -p "$p1 please enter the number of tries you wish to have:" lifeline function main() { guessnum=0 read -p "Please enter if its sinle player game or double player game 1 OR 2:" p3 if [ $p3=2 ] then read -p "Player1 please enter your name:" p1 read -p "$p1 please enter your secret word:" hiddword read -p "$p1 please enter the number of tries you wish to allow:" lifeline read -p "Player2 please enter your name:" p2 echo "Your word is $($hiddword | wc -c) characters long and you have $lifeline tries to guess it !" cat $hiddword > hidd hidden=$(sed -e s'/[A-Za-z]/-/g' hidd) read -p "$p2: Please enter the guess letter:" guess elif [ $p3=1 ] then read -p "Player1 please enter your name:" p1 read -p "$p1 please enter the number of tries you wish to have:" lifeline $p2=$p1 hiddword=$(getword) cat $hiddword > hidd hidden=$(sed -e s'/[A-Za-z]/-/g' hidd) else echo Only two Players can play Please press 1 or 2 fi check } main---------------line 98 -------------------line 99 im also having an error "line 99: syntax error: unexpected end of file ".....while line number 99 is the line shown above and its EMPTY with no code at all. Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|