#!/bin/bash file="$1" if [ "$file" == "" ]; then file=- fi cat "$file" \ | curl -w '%{redirect_url}\n' --form 'content=<-' http://paste.devys.org/