Source from a local .env file
export $(cat .env | xargs) && envsubst < input.txt > output.txt
envsubst cannot work on .env if it has comments
Sep 28, 20251 min read
Source from a local .env file
export $(cat .env | xargs) && envsubst < input.txt > output.txt
envsubst cannot work on .env if it has comments