I want to generate environment variable name dynamically and set the value to that variable. I wrote a shell script as below.
temp="$(date +%s)"
echo $temp
export ${temp} = "Test value"
echo "Pass variable ${temp}"
In the above code, generated timestamp should be the key and "Test value" is the value for that key. This key and value have to export to the session.
How can I achieve this using shell script?