Skip to content

Instantly share code, notes, and snippets.

@liuwen-lvtu
Forked from rjp/gist:795162
Created September 24, 2011 05:04
Show Gist options
  • Save liuwen-lvtu/1238992 to your computer and use it in GitHub Desktop.
Save liuwen-lvtu/1238992 to your computer and use it in GitHub Desktop.
download redis command reference in one page
:>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