ambevar-dotfiles/.scripts/wget-batch

13 lines
186 B
Bash
Executable File

#!/bin/sh
if [ $# -ne 2 ]; then
cat<<EOF
Usage: ${0##*/} EXT URI
Batch download recursively files with extension EXT located at URI.
EOF
exit
fi
wget -r -l1 --no-parent -A"$1" "$2"