I’m trying to get a particular part of an XML attribute. Let’s say the XML file is like this:
<item>
<title>1000 SMS + 1000 Minuten + 1000 MB</title>
</item>
Now I only want to extract the “1000 MB” part. I can get the full line with Grep already, but can’t find out how to sed it to remove the remaining text/symbols. I have the following already:
grep -o ".* MB" merged.xml
Which prints:
<title><![CDATA[1000 SMS + 1000 Minuten + 1000 MB
1 Answer