|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
unexpected end of file
I dont know where I missed the double quotes . 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
|
||||
|
||||
|
I can see two if's but only one fi?
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
The missing double-quote is in the sed command starting with: Code:
sed -n "/Atomic |
| Sponsored Links | ||
|
![]() |
| Tags |
| eof |
| Thread Tools | Search this Thread |
| 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 |
|
|