Issue
I am trying to get the value of the variable(combined variable and argument)
num4=$dir_$2_$3_$date
mv test.tar $dir$2_$3_$date
var=$1,$2,$3,$4,$HOSE,$syncsvr1,$num4
echo $var > value.txt
I got all of the values inside var except num4. am I doing it wrong?
Solution
I have found a solution to this problem:
num4="${dir}_${2}_${3}_$date"
Answered By - Kelvinpogs Answer Checked By - Katrina (WPSolving Volunteer)