Bash environment variables

If you want to pull an environment variable into a bash script do


To do the same, but assign foo a default value if there is no environment variable


Note: the - preceding the default value is required.

Leave A Reply
All content licensed under the Creative Commons License