Created
July 13, 2018 18:54
-
-
Save jessuppi/a7ae4243e677eaef336c8587b6186e9e to your computer and use it in GitHub Desktop.
Sed search/replace examples
This file contains 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
## 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