Article 4ZC9W [SOLVED] sed question

[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 GETlatest?d=yIl2AUoC8zA latest?i=i3LGfZXZ4ms:1ETkfymzivk:F7zBnMy latest?i=i3LGfZXZ4ms:1ETkfymzivk:V_sGLiP latest?d=qj6IDK7rITs latest?i=i3LGfZXZ4ms:1ETkfymzivk:gIN9vFwi3LGfZXZ4ms
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments