Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux source env file

# -o allexport enables all following variable definitions to be exported. +o allexport disables this feature.

set -o allexport
source .env
set +o allexport

or 

set -o allexport; source .env; set +o allexport
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #source #env #file
ADD COMMENT
Topic
Name
4+8 =