bobs-burgers-titlecards/dl.sh
Penelope Gwen b52cf8e881 initial
2024-07-07 01:16:52 -06:00

14 lines
292 B
Bash
Executable file

#!/bin/bash
epnums=($(cat epnums.txt))
epurls=($(cat urls.txt))
mkdir ./tmp/
for n in ${!epnums[@]};do
filename="./out/${epnums[${n}]}.jpg"
wget -P ./tmp/ "${epurls[${n}]}"
dlfile="$(find ./tmp/ -type f | head -n 1)"
convert "${dlfile}" "${filename}"
rm ./tmp/*
done
rm -r ./tmp/