02-06-2009
25,
1
Join Date: Jul 2007
Last Activity: 25 September 2012, 4:26 PM EDT
Posts: 25
Thanks Given: 5
Thanked 1 Time in 1 Post
Help with script
I want to write a script (either sed or awk) which will search for a particular pattern, "xyz" in an XML file, then insert 2 lines of text at the end of that XML tag. To give an example, here is how the particular fragment of lines in XML file would like before :
<Location /xyz/abc>
Directory
Alias
</Location>
This is how the particular fragment of lines in XML file would like after :
<Location /xyz/abc>
Directory
Alias
SSL Cipher
SSL Wallet Directory
</Location>
Any help will be appreciated!