Hi Every one
I need Hlep i am not good at shell scripting
i want to merge two scripts say offline as function offline()
i need to call that functions in following way is is possilbe le me know
-------------------------
echo " OFF/ON"
read option
if [ $option -eq 'OFF' ];
then
offline();
else
online()
fi;
offline()
{
who am i > temp1.txt
}
online()
{
ls -lrt > temp2.txt
}