mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 04:06:28 +08:00
parent
3868fc2291
commit
72c71cd2b5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue