Posted by mroddball on Sun 11 Oct 23:22
report abuse | download | new post
- out=upl.tmp.`date +%s`
- echo "Uploading: $1"
- curl -H Expect: -F fileupload="@$1" -F xml=yes -# "http://www.imageshack.us/index.php" > /tmp/$out 2>&1
- if [ `cat /tmp/$out | grep image_link | wc -l` -lt 1 ]
- then
- echo "Error: $1"
- else
- cat /tmp/$out | tr -d " " | grep image_link | grep -o http[^\<]*
- fi
- rm /tmp/$out
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.