How to export environment variables defined in a file

Using environment variables in modern applications is very common

https://unix.stackexchange.com/questions/79064/how-to-export-variables-from-a-file

https://unix.stackexchange.com/a/79084/30988

set -a

. ./tmp.txt

set +a

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.