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 is shell and terminal?

573


What is subshell?

526


How to find all the files modified in less than 3 days and save the record in a text file?

608


What makes c shell a more preferable option than the bourne shell?

534


Why do we use shell scripting?

547






What is the best shell scripting language?

537


How can I set the default rwx permission to all users on every file which is created in the current shell?

902


How do I run a shell script in powershell?

552


What is the conditional statement in shell scripting?

657


What are script files?

548


How do I open the shell in cmd?

524


Is shell scripting easy to learn?

563


What does sh mean?

616


What are the 3 standard streams in linux?

570


What language is shell scripting?

579