sed syntax to remove xml

Posted by mjb on Super User See other posts from Super User or by mjb
Published on 2011-03-13T04:47:19Z Indexed on 2011/03/13 16:12 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

I'm trying to sanitize this output from it's metadata to plug this output into GreekTools, but I am getting stuck on sed.

curl --silent www.brainyquote.com | egrep '(span class="body")|(span class="bodybold")' | sed -n '6p; 7p; ' | sed 's/\<*\>//g'

[ex]

<span class="body">Literature is news that stays news.</span><br> <span class="bodybold">Ezra Pound</span>

Could someone help me along on this track?

© Super User or respective owner

Related posts about linux

Related posts about osx