![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing variables to sed | rogers42 | Shell Programming and Scripting | 3 | 10-29-2007 02:42 PM |
| Passing variables to sed | jfisch | Shell Programming and Scripting | 3 | 03-07-2005 07:25 AM |
| Passing awk Variables | gozer13 | Shell Programming and Scripting | 3 | 01-04-2005 04:32 PM |
| Passing Variables to Awk | Bab00shka | Shell Programming and Scripting | 2 | 10-05-2004 07:18 AM |
| passing variables | sounder123 | Shell Programming and Scripting | 1 | 06-10-2004 09:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Passing string variables
HI all,
Very new to shell programming and just wanted some help on how to solve the following problem. I have a small shell script which searches a given file and extracts some string parameters. I want to now be able to call this script from another shell script and somehow pass the parameters back to the calling script where I can assign them to variables and use them. Any help would be appreciated. |
|
||||
|
Quote:
Code:
PARM_LIST=$(/path/to/called.sh) echo PARM_LIST is $PARM_LIST Code:
S1="String1" S2="String2" S3="String3" echo $S1 $S2 $S3 Code:
./caller.sh PARM_LIST is String1 String2 String3 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|