How do I pass an environment variable in bash script?

Giang Phạm

New member
How do I pass an environment variable in bash script?
Answer
Environment Variables
Bash scripts can also be passed with the arguments in the form of environment variables. This can be done in either of the following ways:
Specifying the variable value before the script execution command.
Exporting the variable and then executing the script.
 

Tìm kiếm

Back
Top