The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Passing global variable to a function which is called by another function sars Shell Programming and Scripting 4 06-30-2008 08:39 AM
Passing argument to a pl/sql block er_ashu Shell Programming and Scripting 2 05-02-2008 08:42 AM
passing argument into awk prkfriryce Shell Programming and Scripting 4 02-01-2007 12:44 PM
Problem with Argument Passing A_Rod Shell Programming and Scripting 4 09-13-2006 08:47 AM
Passing Argument to Function AkumaTay UNIX for Dummies Questions & Answers 2 10-18-2001 03:24 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2008
Registered User
 

Join Date: Jan 2008
Location: Bangalore,India
Posts: 132
Stumble this Post!
Arrow Passing more than one argument in a function

Hi All,

Calling a function with one argument and storing the return value in a shell script is as below so far I know)

value="`fun_1 "argument1"`"

Its working perfectly for me.

Can u help me with passing more than one argument and storing the return value

Thnaks in advance
JS
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-23-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,846
Stumble this Post!
Code:
value=$( fun_1 "argument1" "this is arg2" "i am arg3" )
The $( ) thing is the same as backticks in standard shells
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0