$ lynx --dump -listonly index.html
Example result:
References
Visible links
1. http://lynx.invisible-island.net/
2. http://lynx.invisible-island.net/lynx.html
3. http://lynx.invisible-island.net/current/index.html
What I want to do is remove the 1. 2. and 3. "References" and "Visible Links" text included.
Wanted Result:
http://lynx.invisible-island.net/
http://lynx.invisible-island.net/lynx.html
http://lynx.invisible-island.net/current/index.html
Try:
lynx --dump -listonly index.html | sed -r 's/^[0-9]+\. //'