Skip to content

Instantly share code, notes, and snippets.

@alephalpha0
Created September 3, 2020 11:44
Show Gist options
  • Save alephalpha0/1f7156fe5a79a88272e98d9539fbde40 to your computer and use it in GitHub Desktop.
Save alephalpha0/1f7156fe5a79a88272e98d9539fbde40 to your computer and use it in GitHub Desktop.
#!/data/data/com.termux/files/usr/bin/bash
# 2020-09-03 :: alephalpha0@rootofpi.me
############################################
# script to take urls shared to termux from
# android, and download the page. main use
# in my eyes is downloading raw files from
# github.
############################################
URL=$1
#sets URL to the url shared/passed to termux
DIR=~/downloads/wget
# the download dir
FILE=wget.`date +"%Y%m%d"`
# the file to download into
cd $DIR
wget --show-progress $URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment