#!/bin/bash #Get pages from UseMyComputer by selecting a page via http://usemycomputer.com/indeximages/women/ #set -x #DISPLAY=:0.0 aterm -g 80x70-0+0 -bg lightblue -sh +sb -e vi /home/houghi/Pictures/to_work_on/files/names.txt & GET_URL () { test -f index.file && rm index.file test -f files.file && rm files.file wget -q -O index.file "$URL" perl -p -i -e "s/>/>\n/g;" index.file grep show.html index.file |awk -F"i=/" '{print $NF}'| \ awk -F\" '{print $1}' >> files.file for I in `cat files.file` do echo `basename $I` wget -q "http://usemycomputer.com/$I" done } while [ "$URL" != "q" ] do read -p "What URL to use? " URL GET_URL ppp done test index.file && rm index.file test files.file && rm files.file