6
rated 0 times
[
6]
[
0]
/ answers: 1 / hits: 8028
/ 2 Years ago, tue, april 19, 2022, 10:58:53
How can I read an .env file and set the variables as bash variables? Currently, I'm able to read it and export them as environment variables.
If the file contains the variables:
DB_NAME=mydb
DB_PASSWORD=abcd1234
Then, DB_NAME
and DB_PASSWORD
will be bash variables and they will contain the respective values.
More From » command-line