Skip to content

Instantly share code, notes, and snippets.

@vielmetti
Created July 21, 2013 03:11
Show Gist options
  • Select an option

  • Save vielmetti/6047319 to your computer and use it in GitHub Desktop.

Select an option

Save vielmetti/6047319 to your computer and use it in GitHub Desktop.
# I generate the list of pages in the wiki with
curl http://arborwiki.org/All_Pages > all-pages.html
cat all-pages.html | grep '<li>' | sed -e 's/^.*href=.//' -e 's/".*$//' -e 's#^#http://arborwiki.org#' > all-pages.txt
# and then my "randomarborwiki" script looks like (Mac OS X)
open $(~/bin/randomline all-pages.txt)
# where randomline is here
# https://github.com/vielmetti/vielmetti-shelltools/blob/master/randomline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment