Skip to content

Instantly share code, notes, and snippets.

@rjp
Created January 25, 2011 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rjp/795162 to your computer and use it in GitHub Desktop.
Save rjp/795162 to your computer and use it in GitHub Desktop.
:>test.html; lynx -dump http://redis.io/commands | awk '/commands/{print $2}' | while read i; do j=${i##*/}; (echo "<h1>$j</h1>"; curl $i | sed -n -e '/<aside>/,/<\/aside>/d' -e '/<article>/,/<\/article>/p'; echo "<hr>") >> test.html; sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment