Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to declare functions in unix shell script?

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


Please Help Members By Posting Answers For Below Questions

What is eval in shell script?

1253


What is a shell in operating system?

1103


What is an sh file?

939


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

997


What is gui scripting?

1104


What is the difference between scripting and coding?

1039


How to open a read-only file in the shell?

1127


How to use arguments in a script?

1108


What is shell and terminal?

1007


What is the way to do multilevel if-else's in shell scripting?

1301


State the advantages of shell scripting?

1052


How to print all the arguments provided to the script?

962


What does $1 mean in bash?

1098


What is a command line shell?

1053


What is the command to find out today's date?

1141