Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting


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

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-30-2012
Registered User
 
Join Date: Jul 2012
Posts: 39
Thanks: 4
Thanked 0 Times in 0 Posts
unexpected end of file

I dont know where I missed the double quotes .pls review this code and help me out .

Code:
 
 
m1: line 26: unexpected EOF while looking for matching `"'
m1: line 34: syntax error: unexpected end of file


Code:
 
echo "script is created by prabhu Kumar ";
echo "changing the directory to wes ";
cd /itf/ude/wes/;

echo "running the script and generating the input file " ;
echo "reading the file  my_temp.txt";
while read a b c d e f g
do
    if [ "$f" == "SU" ]
    then
        continue
    elif [ "$f" == "IN" ]
    then
        job_depends -c -w -j  $a | sed -n "/Atomic Condition/,/Dependent Job Name/p > my_temp1.txt
 
 while read a b c 
 do 
    if [ "$c" == "T" ]
    then 
  echo "$a"
 
   elif [ "$f" == "F" ]
  then 
  job_depends -c -w -j  $a
 done < my_temp1.txt
  
 
 break
    fi
done < my_temp.txt

Sponsored Links
    #2  
Old 07-30-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 6,909
Thanks: 212
Thanked 753 Times in 657 Posts
I can see two if's but only one fi?
Sponsored Links
    #3  
Old 07-30-2012
Registered User
 
Join Date: Jul 2012
Location: San Jose, CA
Posts: 1,466
Thanks: 62
Thanked 528 Times in 462 Posts
The missing double-quote is in the sed command starting with:

Code:
sed -n "/Atomic

Sponsored Links
Closed Thread

Tags
eof

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unexpected end of file milink Shell Programming and Scripting 5 10-20-2010 07:21 AM
Unexpected end of file, why? glev2005 Shell Programming and Scripting 5 10-20-2009 10:25 AM
'end of file' unexpected srisreeku Shell Programming and Scripting 1 04-28-2008 02:39 PM
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 02:47 AM



All times are GMT -4. The time now is 12:38 AM.