Answer Posted / sujay kumar
First method:
function function_name
{
}
Second Method:
function_name()
{
}
For both methods, the invocation of function would be in
the same format only.
Invocation:
function_name
| Is This Answer Correct ? | 62 Yes | 12 No |
Post New Answer View All Answers
What is shell terminal?
What shell is bin sh?
Explain how you Automate your application using Shell scripting.
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What are types of shells?
How does ls command work?
What are the different types of variables used in shell script?
What is bash coding?
Is shell scripting difficult?
How can I set the default rwx permission to all users on every file which is created in the current shell?
What is path variable bash?
How are shells born?
What does $1 mean in bash?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What is the default ubuntu terminal?