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 / 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

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

1219


What are the zombie processes?

1038


What is the syntax of while loop in shell scripting?

1094


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

1207


What are the disadvantages of shell scripting?

1265


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

1102


What is basename in shell script?

1102


What is the lifespan of a variable inside a shell script?

1703


What is the first line in every perl script called?

1100


What is shell company all about?

1031


How to calculate the number of passed arguments?

1168


What is awk script?

1028


Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

2301


What is the use of "$?" Sign in shell script?

1217


What's the difference between scripting and coding?

1261