diff --git a/web_pull.sh b/web_pull.sh new file mode 100755 index 0000000..28a7ec5 --- /dev/null +++ b/web_pull.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# this will pull a file via wget + +TMPDIR=$(/bin/mktemp -d) +TMPFILE=$(/bin/mktemp) + +# read line to pull file + +echo "Location of the file" +read web_location_of_file + +# pull file here +pull_file { + TMPDIR=$(/bin/mktemp -d) + cd TMPDIR + wget $web_location_of_file +} + +pull_file() + +# output file here