Dr. Matt Lee (mattl)

Web standards, accessibility, free/open source software, old UNIX/TV/Music and occasional wargaming

Road trip to New York (2012)

Yesterday, I took a road trip to NYC — in a U-Haul. It was the first time I’d ever really been in a car in NYC, other than small parts of cabs and a short ride in the 2600 phone van once. Traffic was intense, and constant, and yet once we got into Manhattan, it seemed to follow nicely. Getting from the outskirts of NYC to Manhattan took about 2 hours more than it should have, and in the end, I had only a few minutes to spare in NYC before taking the Acela back to Boston.A few things I noted:

One liner to get all the domain names linked from a particular page (2012)

for domain in $(lynx –source www.stallman.org |  perl -ne ‘if (/href=”([^”]*)”/) { print “$1\n”; }’ | grep http | grep "://” ); do echo $domain | sed -e “s/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/”;  done | sort -uAlso, wow… Stallman links to a ton of stuff.