Skip to content

Instantly share code, notes, and snippets.

@innermond
Last active May 25, 2017 08:37
Show Gist options
  • Save innermond/1fe9e345126b494f38b99e549a583a71 to your computer and use it in GitHub Desktop.
Save innermond/1fe9e345126b494f38b99e549a583a71 to your computer and use it in GitHub Desktop.
get all links from a rtf document, stripping quotes around them
cat <path/to/rtf.document> | grep -aEo '{HYPERLINK [^}]+' | cut -d' ' -f 2 | tr -d '"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment