2

Even though it's HTML and not proper XML you can actually do this with xmlstarlet. Let's call your file index.html. Command invocation: xmlstarlet fo -H index.html 2>/dev/null | xmlstarlet sel -t -v '//a[@title="view quote" and string-length(text()) > 1]' -n 2>/dev/null Output: Everything in life is luck. The first thing the secretary ...


Only top voted, non community-wiki answers of a minimum length are eligible