I've written a little script to download sequentially named files, rename them, and delete files smaller than an certain number of kilobytes. I came up with this but I'm not too happy. Any advice for me?
#!/bin/sh
echo
echo -n "Start file #:"
read start
echo
echo -n "End file #:"
read end
echo
wget --progress=bar:force http://www.mybox.com/pictures/show_pic.asp?src_id={$start..$end} 2>&1 | progressfilt
sleep 1
for file in *.asp
do
mv "$file" "${file%.asp}.jpg"
done
find * -maxdepth 1 -name "*.jpg" -size -300k -delete
echo "tasks completed...exiting"
exit