![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
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 11:39 AM |
| Passing a unix variable value to a Plsql function | cobroraj | UNIX for Advanced & Expert Users | 1 | 10-30-2007 06:59 AM |
| passing variable to function | Knotty | UNIX for Dummies Questions & Answers | 4 | 04-05-2007 12:49 AM |
| ksh: A part of variable A's name is inside of variable B, how to update A? | pa3be | Shell Programming and Scripting | 4 | 03-30-2005 11:29 AM |
| Passing a variable name to be created within a function | 435 Gavea | Shell Programming and Scripting | 2 | 02-04-2004 03:20 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I would like to know how to pass a variable inside a variable to a function.
sample code below -------------- for x in 1 9 do check_null $C$x ##call function to check if the value is null if [ $? -eq 1 ] then echo "line number:$var_cnt, message: field is not null" fi done -------------- C1 has a value, as does C9 I need to pass values stored in C1 and C9 to the function Any help would be highly appreciated. Thanks |
|
||||
|
Yes, I believe thats the way to do it, but how to call the function using the above ? (BTW, thanks for your post)
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|