Last active
August 29, 2015 14:10
-
-
Save xbin999/5d6ae721d04d51f99c39 to your computer and use it in GitHub Desktop.
为七牛云存储上传的文件日志显示图像的markdown格式
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
# only display markdown result | |
/Users/yangbin/bin/qrsync /Users/yangbin/bin/qiniu-conf.json 2>&1 | grep "Put" | awk -F"[:]" '{printf "![](http://xbin999.qiniudn.com/%s )\n", $6 }' | |
# replace the original log with markdown format | |
/Users/yangbin/bin/qrsync /Users/yangbin/bin/qiniu-conf.json 2>&1 |sed -e 's/\(=> xbin999:\)\(.*\)/=> ![](http:\/\/xbin999.qiniudb.com\/\2\)/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment