Skip to content

Instantly share code, notes, and snippets.

@xquery
Created February 28, 2020 14:31
Show Gist options
  • Save xquery/d8b931d618d9104354ae03ede50483a3 to your computer and use it in GitHub Desktop.
Save xquery/d8b931d618d9104354ae03ede50483a3 to your computer and use it in GitHub Desktop.
primitive scraping links
curl httpbin.org | \
sed 's/href=/\nhref=/g' | \
grep href=\" | \
sed 's/.*href="//g;s/".*//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment