Hi,
can anyone tell me the difference between the below two examples:
Eg-1:
# name=bravo
# echo $bravo
what would be the o/p
Eg-2:
# name1=jhonny
# export name1
# echo $name1
what would be the o/p
If the o/p's of both examples are the same then what is the use of the cmd export in Eg-2.
I know export will create an env variable temporarily, when I type the cmd "env" it will display the variable name1 and its value.
Can anyone give more specific info of what is going on in the background, and the real use of export.
Thanks in advance.