export env variable in bash script code example
Example 1: export variable bash
$ export MYVAR=1729
$ echo $MYVAR
1729
Example 2: env variable bash
#print enviornment variable bash
echo $TEST_VAR
$ export MYVAR=1729
$ echo $MYVAR
1729
#print enviornment variable bash
echo $TEST_VAR