Back

HOWTO!

How to add a line after a matching line in a file in bash

sudo sed -i '/include \/etc\/nginx\/sites-enabled\//a testconfig="hello"' /etc/nginx/nginx.conf