FILE=results.csv for SITE in www.digg.com www.blip.tv www.reddit.com www.twitter.com www.technorati.com del.icio.us www.flickr.com www.myspace.com www.youtube.com www.wikipedia.org do echo -n ?$SITE,? >> $FILE # Check port 79 and 80 (one closed, one open) cut out the application and OS # results and create a nice, comma separated version to show mom sudo nmap -A -O -P0 -p 79-80 $SITE | grep -Eo ?^80.*|OS guesses.*? | sed ?s/,/ or /g? \ | tr ?\n? ?,? | sed -e ?s/80\/tcp open *http *//? -e ?s/OS guesses: //? >> $FILE echo >> $FILE done