Fix to random tip function.
parent
b6bd53fece
commit
85b2c20357
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue