Skip to content

Instantly share code, notes, and snippets.

@jessuppi
Created July 13, 2018 18:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessuppi/a7ae4243e677eaef336c8587b6186e9e to your computer and use it in GitHub Desktop.
Save jessuppi/a7ae4243e677eaef336c8587b6186e9e to your computer and use it in GitHub Desktop.
Sed search/replace examples
## replace entire line containing string with new line content ##
sed -i '/error_log/c\error_log = /var/www/logs/error.log' /etc/php/7.2/fpm/php-fpm.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment