#! /usr/bin/env bash # make a website url for the filename you type # and replaces spaces with %20 CUT=`pwd|cut -c21-` FILE="$CUT/$1" echo "https://"${FILE// /%20}