#!/bin/bash tempfile="$(mktemp)" cat "${1:--}" > $tempfile curl -w '%{redirect_url}\n' --data-urlencode content@$tempfile \ https://paste.devys.org/ rc=$? rm $tempfile exit $rc