mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-25 02:26:30 +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
|
```sh
|
||||||
function taocl() {
|
function taocl() {
|
||||||
curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md |
|
curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md |
|
||||||
|
sed '/cowsay[.]png/d' |
|
||||||
pandoc -f markdown -t html |
|
pandoc -f markdown -t html |
|
||||||
xmlstarlet fo --html --dropdtd |
|
xmlstarlet fo --html --dropdtd |
|
||||||
xmlstarlet sel -t -v "(html/body/ul/li[count(p)>0])[$RANDOM mod last()+1]" |
|
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