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

Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

1277


What are the types of script?

1157


What is the use of a shebang line?

1181


What is a program shell?

1031


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

2197


What is a batch file used for?

1072


Write the syntax for "if" conditionals in linux?

1105


What is the equivalent of a file shortcut that we have a window on a linux system?

1113


How do I set bash as default shell mac?

989


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

2155


What are the two files of crontab command?

1218


What is a file basename?

1038


What is in a script?

1007


How to calculate the number of passed arguments?

1075


Is it possible to substitute "ls" command in the place of "echo" command?

1047