Add 'url.sh'

This commit is contained in:
2019-03-26 14:57:17 +00:00
parent 802f46b240
commit d2c0f6d24f

9
url.sh Normal file
View File

@@ -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}