You’ll need curl and xclip
sudo apt-get update && sudo apt-get install curl xclip
Code:
#!/bin/bash
curl -H Expect: --cookie "myimages=imageshackregistrationcode;" -F fileupload="@$1" -F xml=yes -# "http://www.imageshack.us/index.php"|awk -F"[<|>]" '$2=="image_link" {print $3}'|tee >(xclip -i)
EOF
You won’t have error reporting, so be careful.