All,
I have a sh script of the following tune:
function a () { #functionality.. }
function b () { #functionnlity.. }
function check () { # this function checks for env and if all fine call build }
function usage () { #sh usage details }
function build () { #calls either a or b or both }
if [ $# == 0 ] ; then
usage ;
else
check;
fi;
# end of script
I run the script as follows
sh build.sh a
Now I need to know how to pass the parameters i.e all to check, which in turn will pass it on to build.
uname -a is
Linux staci21 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux
Vino