Created
May 29, 2022 00:22
-
-
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 #
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export $(grep -v '^#' .env | xargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment