Can you please tell me how to Grep for every instance of a substring that occurs multiple times on multiple lines within a file?
I've looked at https://unix.stackexchange.com/questions/131399/extract-value-between-two-search-patterns-on-same-line and How to use sed/grep to extract text between two words?
But my problem is slightly different - each substring will be immediately preceded by the string: name">
and will be terminated be a <
character immediately after the last character of the substring I want.
So one line might be
<"name">Bob<125><adje></name><"name">Dave<123><adfe></name><"name">Fred<125><adfe></name>
And I would like the output to be:
Bob
Dave
Fred