2485 shaares
83 private links
83 private links
A wonderful little one-liner to grab all VARIABLE=CONTENT lines from an environment file and automatically add them to your current environment.
In its simplest form:
export $(cat /your/file/env | xargs)
But there are variations for potential spaces in the var content, only setting them (eval) for a single command and automatically unsetting variables again,