Skip to main content

Dr. Matt Lee (mattl)

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

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 -u

Also, wow… Stallman links to a ton of stuff.

Published: Sat Jul 07 2012 07:55:14 GMT-0400 (Eastern Daylight Time) by