I have a xml file with a 1 line long string
I want to extract the number after “”
like the following example, I want to get 131
.....<yt:duration seconds='131'/>....
the “….” here means the substrings before and after “”, which are long with different characters, numbers and marks.
how to use sed for extracting the matching number?
thanks
Use
grep, notsed: