Shell Scripting VariablesScripts can contain variables inside the script. ![]() Look at the above snapshot, two variables are assigned to the script $var1 and $var2. As scripts run in their own shell, hence variables do not survive the end of the script. ![]() Look at the above snapshot, var1 and var2 do not run outside the script.
Next TopicSourcing a file
|