#word #line #nth #vim #stdin #read #input

app wordext

从一行中提取第n个单词,或将从stdin读取的行写入stdout

1个稳定版本

1.0.0 2021年8月5日

#5 in #nth

MIT 许可证

4KB

wordext

从输入中提取第n个单词,可以是整个输入,也可以是每行

示例

这可以用来创建一个更差的killall版本,例如使用kill,杀死所有的vim进程

`` ps -e | grep vim | wordext -r -n 0 | xargs kill -9


## installation

I am not going to learn how to package this, so it will be crates.io only, i doubt it will be useful
enough for me to do otherwise

cargo install wordext

## why

I have found myself trying to pipe a single word from an input, and wanting to pipe this to another
command one or two times to often, and thus wrote this, so I can install it easily on any computer I
use regularly, and not have to learn regex :)

依赖项

~3MB
~51K SLoC