Created
February 21, 2012 20:12
-
-
Save Sequoia/1878588 to your computer and use it in GitHub Desktop.
jpgto bash function
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
function jpgto(){ | |
local jptkeyword=$1; | |
local jptpath=$2; | |
curl -silent -F keyword=$jptkeyword -F file="@$jptpath" jpg.to/finish.php >> /dev/null; | |
echo "http://jpg.to/$jptkeyword"; | |
} | |
[you@home]$ jpgto delicious /path/to/cake.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment