From 85b2c203572668b2426ffd757acc2e301ffe4495 Mon Sep 17 00:00:00 2001 From: Joshua Levy Date: Sun, 14 Jun 2015 13:37:32 -0700 Subject: [PATCH] Fix to random tip function. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b5312d..6abf654 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,7 @@ A few examples of piecing together commands: ``` function taocl() { curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md | - pandoc -f markdown -t html README.md | + pandoc -f markdown -t html | xmlstarlet fo --html --dropdtd | xmlstarlet sel -t -v "(html/body/ul/li[count(p)>0])[$RANDOM mod last()+1]" | xmlstarlet unesc | fmt 80