Crates.io | wd |
lib.rs | wd |
version | 0.1.3 |
source | src |
created_at | 2021-05-15 09:54:10.968263 |
updated_at | 2021-05-16 03:10:09.211937 |
description | wd - a command line tool for print specified position of words |
homepage | |
repository | |
max_upload_size | |
id | 397778 |
size | 10,351 |
wd - a command line tool for print specified position of words
Inpired by https://github.com/onsd/wd
cargo install wd
echo "a b c" | wd -n 1 2
# a b
echo "a b c" | wd -n 1 3
# a c
cat some.txt
# abc def
wd --input some.txt --number 1
# abc
wd -i some.txt -n 2
# def
exa
is modern ls
made by Rust.
exa -l
# .rwxrwxrwx 5.9k ssssota 15 May 19:42 Cargo.lock
# .rwxrwxrwx 252 ssssota 15 May 19:42 Cargo.toml
# .rwxrwxrwx 335 ssssota 15 May 19:45 README.md
# drwxrwxrwx - ssssota 15 May 18:19 src
# drwxrwxrwx - ssssota 15 May 18:53 target
exa -l | wd -n 1 7
# .rwxrwxrwx Cargo.lock
# .rwxrwxrwx Cargo.toml
# .rwxrwxrwx README.md
# drwxrwxrwx src
# drwxrwxrwx target
cat some.csv
# a,b,c
# 1,2,3
# 4,5,6
cat some.csv | wd -d "," -n 1 3
# a c
# 1 3
# 4 6