Created
July 28, 2017 19:28
-
-
Save mdonkers/e4d76ad619683195f106bc00a5bff1a5 to your computer and use it in GitHub Desktop.
sed command to replace Markdown style links with HTML links, opening in separate tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i -r -e 's/(.*)\[(([[:alnum:]]|[[:space:]])+)\]\((http([[:alnum:]]|[[:punct:]])+)\)(.*)/\1<a href="\4" target="_blank">\2<\/a>\6/g' [input-file]... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment