I need a small correction for my below code. I am trying to assign variable value to another variable, but it's not working. please help me.
Below is my script.
#!/bin/sh
choice=1
VAL1="test"
if [ "$choice" == 1 ];
then
echo "insode"
echo $choice
purpose=$VAl1
echo "*"
echo $purpose
fi
Please help me, I'm new to shell scripting. I need to display purpose
value as test.