The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
'end of file' unexpected srisreeku Shell Programming and Scripting 1 04-28-2008 03:39 PM
Printing value with no obvious field seperator Donkey25 Shell Programming and Scripting 4 03-14-2008 06:57 AM
end of file unexpected naveeng.81 Shell Programming and Scripting 1 03-11-2008 06:43 AM
unexpected end of file dineshr85 Shell Programming and Scripting 2 10-15-2007 03:47 AM
'end of file' unexpected abhijeetkul Shell Programming and Scripting 4 04-10-2006 07:42 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-02-2008
alias_juju alias_juju is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 5
missing the obvious, unexpected end of file

For the life of me I cannot get the if statement in this very simple shell script to execute.

my dummy.sh looks as follows ...
#!/bin/bash
echo "coming in ...."
echo "I can not get this simple statement to execute"
if [ "foo" = "foo" ]; then
echo "expression is true"
fi
echo "leaving...."

the output I'm getting is when running the script is ...

coming in ....
I can not get this simple statement to execute
dummy_g5.sh: line 9: syntax error: unexpected end of file

Appreciate your help.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0