#!/usr/bin/env sh rsync "$1" "root@armaanb.net:/var/www/ftp/pub/${2}" echo "https://ftp.armaanb.net/pub/"$(basename "$1") | tee /dev/tty | xclip -sel c