Need help turning this wget string in to a bash script because I use it frequently.
wget -nd -H -r -l 1 -A jpg,jpeg,bmp,gif,png,mp4,webm -e robots=off
So far I have tried
#!/bin/bash
wget -nd -H -r -l 1 -A jpg,jpeg,bmp,gif,png,mp4,webm -e robots=off "${URL}"
When I do
myscript.sh http://example.com/where/thefilesare
I get
http://: Invalid host name.