Skip to content

Instantly share code, notes, and snippets.

@simbalinux
Created June 15, 2018 15:34
Show Gist options
  • Save simbalinux/bd705080558ee6452087c74d4e705cfe to your computer and use it in GitHub Desktop.
Save simbalinux/bd705080558ee6452087c74d4e705cfe to your computer and use it in GitHub Desktop.
append after a line in a file
#!/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