I am trying to figure out to locate a line in a configuration file, then to drop down two lines then to insert a line of code. I was attempting to do this in awk/sed but got stuck on the carriage return. I not tied to awk/sed but looking for a clean way to accomplish this.
<Location />
Order allow,deny
</Location>
Then to add a line into that block:
<Location />
Order allow,deny
Allow all
</Location>
</Location>in your file? More than oneOrder allow,deny? If yes, how can we know which one is your target?