How to call a function in shell Scripting?

后端 未结 7 1064
情话喂你
情话喂你 2020-12-05 05:06

I have a shell script which conditionally calls a function.

For Example:-

if [ \"$choice\" = \"true\" ]
then 
  process_install
elif [ \"$choice\" =          


        
7条回答
  •  不知归路
    2020-12-05 05:55

    You can create another script file separately for the functions and invoke the script file whenever you want to call the function. This will help you to keep your code clean.

    Function Definition : Create a new script file
    Function Call       : Invoke the script file
    

提交回复
热议问题