Skip to content

Commit 72c71cd

Browse files
authored
Make taocl() more robust
Thanks to #533 @ResponSySS and @pr4j
1 parent 3868fc2 commit 72c71cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,11 @@ A few examples of piecing together commands:
376376
```sh
377377
function taocl() {
378378
curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md |
379+
sed '/cowsay[.]png/d' |
379380
pandoc -f markdown -t html |
380381
xmlstarlet fo --html --dropdtd |
381382
xmlstarlet sel -t -v "(html/body/ul/li[count(p)>0])[$RANDOM mod last()+1]" |
382-
xmlstarlet unesc | fmt -80
383+
xmlstarlet unesc | fmt -80 | iconv -t US
383384
}
384385
```
385386

0 commit comments

Comments
 (0)