Put this code into your own transfer.sh script.
#!/bin/sh SITE=transfer.rrq.au for F in $* ; do if [ -r "$F" ] ; then # Upload $F under its basename curl --upload-file "$F" "https://$SITE/$(basename "$F")" echo elif [ -z "${F##http*}" ] ; then # Download the $F URL into its basename curl -s "$F" > "$(basename "$F")" echo "$(basename "$F")" else echo "Not sure what to do with $F" >&2 fi done
$ transfer.sh some/path/to/example.zip https://transfer.rrq.au/uiGEAI7ysD/example.zip
$ transfer.sh https://transfer.rrq.au/uiGEAI7ysD/example.zip example.zip
(*) using transfersh-v1.6.1-linux-amd64 by DutchCoders.