Hi
I had written the small script for calling a function.
bash-2.03$ more file2
function sai
{
echo " this is an example"
}
echo "This is main program"
echo "calling the function"
sai()
when executing the above script. I am getting error.
bash-2.03$ sh file2
file2: function: not found
this is an example
This is main program
calling the function
And the Order of execution is also not correct.
Can any one please help me.