Skip to content

Instantly share code, notes, and snippets.

@cer
Created March 26, 2020 19:48
Show Gist options
  • Save cer/e9a9564fc564f580911617a136cb159d to your computer and use it in GitHub Desktop.
Save cer/e9a9564fc564f580911617a136cb159d to your computer and use it in GitHub Desktop.
#!/bin/bash -e
curl -s --location https://microservices.io/patterns | \
sed -n -e '/<a href="[/.]/d' -e '/<a href="/!d' -e 's/.*href="//' -e 's/".*//' -e '/http/d' -e '/cn\//d' -e '/./p' | \
sort -u | \
sk | \
sed -e 's?\(.*\)?https://microservices.io/patterns/\1?' | \
pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment