Skip to content

Instantly share code, notes, and snippets.

@jollychang
Created September 4, 2014 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jollychang/d4dd449a78e373b2d06a to your computer and use it in GitHub Desktop.
Save jollychang/d4dd449a78e373b2d06a to your computer and use it in GitHub Desktop.
lastp.sh
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