![]() |
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 |
| awk - arithemetic functions with external variables | DKNUCKLES | Shell Programming and Scripting | 2 | 12-01-2007 04:32 AM |
| How to parse config variables from external file to shell script | pradsh | Shell Programming and Scripting | 2 | 07-09-2007 02:21 PM |
| Accessing files on external USB drive using UNIX? | Slanter | UNIX for Dummies Questions & Answers | 1 | 05-30-2006 01:47 AM |
| how to include external files in tcsh | umen | Shell Programming and Scripting | 0 | 12-07-2005 05:54 AM |
| substituting shell variables | suds19 | Shell Programming and Scripting | 1 | 10-16-2002 08:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Substituting variables from external files
Hi All,
I have the following problem: 1. I have a file containing a line: a,b,d,${d},e,f 2. From within a script I grep the file for '^a,' to get the line 3. I obtain the fourth field as follows: Field4="$( print -r $fileEntry | cut -d, -f4 )" 4. The script exports variables at the beginning including ${d} How do I get ${Field4} to contain the substituted variable ${d} instead of the literal '${d}' I hope this is clear, I am happy to explain anything if I am talking jibberish. Thanks in advance. Chris |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|