Created
June 15, 2018 15:34
-
-
Save simbalinux/bd705080558ee6452087c74d4e705cfe to your computer and use it in GitHub Desktop.
append after a line in a file
This file contains hidden or 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
#!/bin/bash | |
sed -i '/ServerName web2.example.com:443/a CustomLog /var/log/httpd/example.com/logs/web2.example.com-access.log combined' ssl.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment