Created
September 4, 2014 06:58
-
-
Save jollychang/d4dd449a78e373b2d06a to your computer and use it in GitHub Desktop.
lastp.sh
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
lastp() { | |
filename=`find ~/Desktop/ScreenShots/ -type f -exec stat -f "%m %N" {} \; | sort -n | tail -1 | cut -f2- -d" "` | |
url=`curl -s -F file=@"$filename" http://p.dapps.douban.com/` | |
echo $url | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment