scripts/load.sh

20 lines
303 B
Bash
Executable File

#!/bin/bash
#create dir
mkdir dl
cd dl
#url to download from
BASEURL=""
#part behind the nummber
POSTFIX=".jpg"
#start id
i=1
#endid
end=1000
while [ $i -lt $end ]; do
wget "${BASEURL}${i}${POSTFIX}" -O "${i}${POSTFIX}"
let i=i+1
done
#delete small files (404-errors)
#find . -size -1k -delete