Skip to content

Instantly share code, notes, and snippets.

@thehackermonkey
Created May 29, 2022 00:22
Show Gist options
  • Save thehackermonkey/529659b1c92e9b18918d160b3348ccd3 to your computer and use it in GitHub Desktop.
Save thehackermonkey/529659b1c92e9b18918d160b3348ccd3 to your computer and use it in GitHub Desktop.
Command line way to extract and export variables from a .env file ignoring commented lines using #
export $(grep -v '^#' .env | xargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment