#!/bin/sh image=$(curl --silent -L "http://fluffy-kittens.tumblr.com/random" | grep "og:image" | sed "s/\/>/\/>\n/g" | grep "og:image" | rev | cut -d '"' -f 2 | rev | head -n 1) echo $image wget --quiet "$image" toot -i="$(basename $image)" "#inPURRection #gattini #kittens" rm $(basename $image)