I have a quit large XML file that I am trying to modify only certain lines of the file. The lines I want to modify will all contain in them. On those lines, I want to have only the text between 2 string (in this case those strings are / and ). So lets says I have this in a text file:
<title>xxxxxxxxx / xxx</title>
<sys>yyyyyyyyy</sys>
<name>test / extra text</name>
<date>zzzzzzzzz</date>
I want to modify it so I get the following:
<title>xxxxxxxxx / xxx</title>
<sys>yyyyyyyyy</sys>
<name>test</name>
<date>zzzzzzzzz</date>
Can this be accomplished with awk or sed?