In one fell swoop
for i in {2008..2009}; do for j in {1..12}; do wget \
-O - "http://bobthecow.tumblr.com/archive/${i}/${j}"; \
done; done | grep -oE "\.tumblr\.com/post/([0-9]+)"| \
grep -oE "([0-9]+)" > tumblr_ids.txt
for i in {2008..2009}; do for j in {1..12}; do wget \
-O - "http://bobthecow.tumblr.com/archive/${i}/${j}"; \
done; done | grep -oE "\.tumblr\.com/post/([0-9]+)"| \
grep -oE "([0-9]+)" > tumblr_ids.txt