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

Explain about the slow execution speed of shells?

783


What can you do with powershell?

619


What is option in shell script?

567


Differentiate between ‘ and ” quotes.

623


How many fields are present in a crontab file and what does each field specify?

601






How will you copy a file from one machine to other?

554


What is the default shell of solaris?

581


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

3608


Is shell scripting a programming language?

585


What is the command to find out users on the system?

577


What is path variable bash?

577


Explain about the exit command?

573


What is a beat in a script?

552


What is shell company all about?

582


What is the first line in a shell script?

562