Urls are already conveniently in a text file, one line per url, so it's probably trivial curl/wget/LWP one-liner. Anybody cares to share such?
views:
24answers:
1
+4
A:
With LWP you can do this (redirecting output to a file if you so wished)
linux-t77m$ cat urls
http://google.com
http://stackoverflow.com
http://yahoo.com
linux-t77m$ cat urls | while read i ;do echo -n $i" "; lwp-request $i -sd; done
http://google.com 200 OK
http://stackoverflow.com 200 OK
http://yahoo.com 200 OK
The quickest way (as in getting the results faster) would be to launch processes in parallel, of course.
Vinko Vrsalovic
2010-06-18 23:57:39