I have a script.
#!/bin/sh
cur_$1_modify_time=Hello
echo "cur_$1_modify_time"
When I run like
sh /root/script1 jj
I expect value "Hello" being assigned to variable "cur_jj_modify_time" and output being "Hello" ie echoing $cur_jj_modify_time
But the output comes as
# sh /root/script1 jj
/root/script1: line 3: cur_jj_modify_time=Hello: command not found
cur_jj_modify_time
Please help.