Skip to content

Instantly share code, notes, and snippets.

View soberstadt's full-sized avatar
🤷‍♂️
yep.

Spencer Oberstadt soberstadt

🤷‍♂️
yep.
  • Stevens Point, WI
View GitHub Profile
@judy2k
judy2k / parse_dotenv.bash
Created March 22, 2017 13:34
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)