Change the letters from 0000 to 99ZZ so the first two digits should be all numbers from 00 to 99 and the last two digits every letter and every number in every combination.
If you have a mac, you'll have to use curl. It's actually fairly good at this -- you can tell it whole lists of things to fetch, and split on --_curl_-- to tell when each new page begins and ends when you pipe it into something else. Unfortunately, it'll take [a-z] and [0-9], but not [a-z0-9] or [0123456789abcdefghijklmnopqrstuvwxyz], so you have to give it four blocks of stuff to fetch:
Something like:
BASE="http://website/xxxxx[00-99]"
TAIL="yyyyy"
# Fetch all pages with curl, feed them through awk, print all pages containing 'searchstr'
curl "${BASE}[0-9][0-9]${TAIL}" "${BASE}[0-9][a-z]${TAIL}" "${BASE}[a-z][0-9]${TAIL}" "${BASE}[a-z][a-z]${TAIL}" 2>/dev/null |
# Split on curl header of --_curl_--. $1 is the URL following it. Print all URLs for pages containing 'searchstr'
awk -v RS="^--_curl_--" -v FS="\n" '/searchstr/ { print $1 }'
Might be a foolish question, but how do I install curl? I downloaded it (curl-7.19.7). The instructions from curl itself don't work. Says can't find make. Configuration also fails. And then, how to run your script? Is this all code I need? Thank you!