MY_VAR=$(grep MY_VAR .env | cut -d '=' -f 2-)

Parse a .env (dotenv) file directly using BASH