#!/bin/bash localfile="$1" remotefile="${2:-${1}}" remotefile="${remotefile##*/}" echo "$(curl -sF "f:1=@${localfile}" http://ix.io/)+/${remotefile}" | sed 's,#,%23,g'