Skip to content

Instantly share code, notes, and snippets.

@jmasselink
Created November 29, 2016 16:09
Show Gist options
  • Save jmasselink/adc046341c821f858d3faf83f196a080 to your computer and use it in GitHub Desktop.
Save jmasselink/adc046341c821f858d3faf83f196a080 to your computer and use it in GitHub Desktop.
Generate hrefs from list of links
If you have a list of hyperlinks in Markdown, strip out extraneous text and put them into a text file (list.tst).
Using bash, enter the following command:
awk '{ print "<a href=" $o "</a>"}' list.txt > list-edit.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment