Hi All,
I have the following problem:
-
I have a file containing a line:
a,b,d,${d},e,f -
From within a script I grep the file for '^a,' to get the line
-
I obtain the fourth field as follows:
Field4="$( print -r $fileEntry | cut -d, -f4 )" -
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