
03-13-2008
|
|
Registered User
|
|
|
Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 206
|
|
Quote:
Originally Posted by varungupta
Hey,
I have a dummy script that is the base for the above script where I am getting the problem of syntax.
Dummy script is working fine and is given below, but i dont know why the actual script is not working :
-------------------------------------------------------------------
for var in 1 2
do
echo "var : $var"
count=0
while [ "$count" -lt 3 ]
do
echo "count : $count"
awk 'BEGIN { i = 0
f(i)
}
function f(para)
{
if ( para < 10 )
{
print "\n value of para : " para ;
para += 1 ;
f(para) ;
}
else
{
print "\n inside else, before increment, para : " para ;
para += 1 ;
print "\n inside else, para : " para ;
exit ;
}
}
'
let "count += 1"
done
done
-------------------------------------------------------------------
Please have a look and suggest any solution to the problem.
Thanks to all the unix bonds.
Varun Gupta. 
|
Please provide some suggestion on this !!
|