Created
June 22, 2023 07:04
-
-
Save IamFaizanKhalid/05624ee4c31932be45178696d1b89fe3 to your computer and use it in GitHub Desktop.
Read .env file and print it in JSON format.
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
awk 'NF' .env | jq -cMR '[inputs | split("=") | {(.[0]): (.[1]) }] | add' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment