Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fcicq
Last active August 11, 2019 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcicq/88a1b5ee50b55f837dba3d136fed41e6 to your computer and use it in GitHub Desktop.
Save fcicq/88a1b5ee50b55f837dba3d136fed41e6 to your computer and use it in GitHub Desktop.
#!/bin/bash
u=$1
if [ ! -n "$2" ]; then
f=$(basename "$1")
shift
else
f=$2
shift
shift
fi
echo wget $u -O $f $@
args=""
wget "$u" $args -b $@ -O >(split -da3 -b192m - "${f}.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment