Last active
August 11, 2019 21:01
-
-
Save fcicq/88a1b5ee50b55f837dba3d136fed41e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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