|
double variable declaration
i have variables with different values as below in KSH
AU_Holiday=1
SG_Holiday=0
KR_Holiday=1
JP_Holiday=0
$country_cd is the second variable which be one of 'AU' 'SG' 'KR' 'JP' which comes in a for loop.
form that i need to derive the variable like first one and check whether it is equal to 1 or not.
if [ $"$country_cd"_Holiday = "1" ]
then
do something
else
do something
fi
the above logic did not work can someone please help ?
|