[SOLVED] sed question
by bradvan from LinuxQuestions.org on (#4ZC9W)
I want to append a line after a particular set of lines in httpd.conf. There are multiple lines that match the one string, but if I add in the previous line, I can find the correct location with: Code:sed -nE '{N; /\s+#\s+Require all granted/p }' httpd.conf gives me:Code: #
Require all granted Now I want to add some lines after that, but not getting it to work. Any suggestions? I want to add: AllowMethods GET


Require all granted Now I want to add some lines after that, but not getting it to work. Any suggestions? I want to add: AllowMethods GET