-
-
Save ghoulmann/996f6b64e5e63b0fd7b746b496fe4aac 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 hidden or 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