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