This is probably a very simple question, but for some reason I seem to look obvious.
I have a variable called filepath=/tmp/name
To access the variable, I know that I can do this $filepath
In my shell script, I tried to do something like this (reverse ticks are intended)
`tail -1 $filepath_newstap.sh`
This line fails, spirit! because the variable is not called $filepath_newstap.sh
How to add _newstap.sh to a variable name? Please note that reverse ticks are designed to evaluate the expression
unix bash shell
tawheed Jul 12 '13 at 18:56 2013-07-12 18:56
source share