How to declare functions in unix shell script?

Answer Posted / prakash

function Dissplay () {

echo "This is how we define function"

}


Display # Invoking Function

## Function should be defined before we invoke it

Is This Answer Correct ?    67 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does $$ mean in shell script?

591


What is echo in shell?

640


Is shell scripting easy to learn?

571


Explain about debugging?

606


What is shell terminal?

553






How do scripts work?

612


Is powershell a bash?

590


What is a boot block?

587


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

5241


I have 2 files and I want to print the records which are common to both.

703


How to set an array in linux?

598


What does $1 mean in bash?

618


What is .sh file in mac?

561


What is the fastest scripting language?

553


What are the types of script?

618