https://github.com/totalkrill/wordext
small utility that extracts a word from stdinput
https://github.com/totalkrill/wordext
Last synced: 10 months ago
JSON representation
small utility that extracts a word from stdinput
- Host: GitHub
- URL: https://github.com/totalkrill/wordext
- Owner: TotalKrill
- Created: 2021-08-05T14:14:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-06T08:06:19.000Z (almost 5 years ago)
- Last Synced: 2025-08-14T06:19:27.685Z (11 months ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wordext
Extracts the nth word of the input, either of the entire input, or per line
## example
This can be used to create a worse edition of killall using kill, example, killing all vim processes
```
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 :)