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

How does ls command work?

1023


What is shell geeksforgeeks?

1100


What does the sh command do?

1073


What are the advantages of shell scripting?

1032


What is meant by dos operating system?

1054


Is shell script a programming language?

1021


How do we create command aliases in a shell?

987


is this growing field and what is average package in this?

2301


Can we run shell script in windows?

1127


How to pass an argument to a script?

1189


How to use arguments in a script?

1101


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

977


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

1148


how will you find the total disk space used by a specific user?

1045


What does path stand for?

1056