From 72c71cd2b50bed84f0ff9669c65a51edb71e7ec9 Mon Sep 17 00:00:00 2001 From: Joshua Levy Date: Tue, 28 Nov 2017 14:00:14 -0800 Subject: [PATCH] Make taocl() more robust Thanks to #533 @ResponSySS and @pr4j --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 95ee29d..8fceedc 100644 --- a/README.md +++ b/README.md @@ -376,10 +376,11 @@ A few examples of piecing together commands: ```sh function taocl() { curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md | + sed '/cowsay[.]png/d' | 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 + xmlstarlet unesc | fmt -80 | iconv -t US } ```