Last active
February 2, 2017 10:08
-
-
Save mizukmb/bddb0376e9360dfeaa4b to your computer and use it in GitHub Desktop.
Create a markdown format link.
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
#!/bin/sh | |
url=$1 | |
title=`curl -s ${url} | grep -i '<title>' | sed -e 's/<[^>]*>//g' | sed -e 's/ //g'` | |
echo "[${title}](${url})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage