[38 / 4 / ?]

No.51090268 ViewReplyReportDelete
Hey, I found this script to easily download imgur albums but it saves all the files as .jpg, how can I fix this?

 
#!/bin/bash

for ((i = 0; i <= 100; i++)); do
echo "Grabbing page $i"

wget -q "http://imgur.com/r/wallpapers/page/$i"; -O - | grep 'class="post"' | cut -d\" -f2 | while read id
do
echo "Downloading $id.jpg"
wget -q -c "http://i.imgur.com/$id.jpg";
done
done

echo "Done"