Answer Posted / nandish
we can pass the parameter also
ex: function fun_name () {
# write block here
}
invoke function as
fun_name parameter1 parameter2 ...
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is eval in shell script?
What is a shell in operating system?
What is an sh file?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is gui scripting?
What is the difference between scripting and coding?
How to open a read-only file in the shell?
How to use arguments in a script?
What is shell and terminal?
What is the way to do multilevel if-else's in shell scripting?
State the advantages of shell scripting?
How to print all the arguments provided to the script?
What does $1 mean in bash?
What is a command line shell?
What is the command to find out today's date?