How call a function inside another function
In ksh or bash,
mainfunct() {
echo "Text to show here" $(secondfunct)
}
secondfunct() {
echo commands here
}
mainfunct
Generates the following:
Text to show here commands here
android@localhost:~/test$ cat fun.sh
function myname {
echo "my name is raja"
}
function call {
myname
}
call