diff --git a/url.sh b/url.sh new file mode 100644 index 0000000..f15bb05 --- /dev/null +++ b/url.sh @@ -0,0 +1,9 @@ +#! /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}