Skip to content

Instantly share code, notes, and snippets.

@sdurandeu
Created February 5, 2021 13:57
Show Gist options
  • Save sdurandeu/0d055a242eedf8fc695a2488e270ef80 to your computer and use it in GitHub Desktop.
Save sdurandeu/0d055a242eedf8fc695a2488e270ef80 to your computer and use it in GitHub Desktop.
Bash Scripts

Replace an environment variable with sed

sed -i "" -e "s/RELEASE_DATE=.*/RELEASE_DATE=$(date +%F)/g" ./.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment