How can i take sed with 2 condition in just 1 single command, and, is there anything else better than this solution, i want to take then name of latest version geckodriver, so i doing this
curl -s https://github.com/mozilla/geckodriver/releases/latest
the output of this is
<html><body>You are being <a href="https://github.com/mozilla/geckodriver/releases/tag/v0.26.0">redirected</a>.</body></html>
i want to take only this output
v0.26.0
so i am using sed
curl -s https://github.com/mozilla/geckodriver/releases/latest | sed 's/.*tag[/]//'
and the output is
v0.26.0">redirected</a>.</body></html>
How can i take only v0.26.0
i can't use awk. thank you for your advince.