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 kittay /path/to/cat.jpg
EDIT: it outputs the vote link because we don't know if you have the top img for that tag.
EDIT: it outputs the vote link because we don't know if you have the top img for that tag.