SkillAgentSearch skills...

Nth

a Unix command line utility to filter stdin by column numbers

Install / Use

/learn @coledot/Nth
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

nth

a Unix command line utility to filter stdin by column numbers

usage

cat foo | nth <columns>, each column being an integer index

building

cargo build --release

why?

an opportunity to learn Rust, and to scratch a command line itch.

what about cut?

cut works great for situations where the whitespace is fixed, e.g. a single space or single tab. nth groups columns by whitespace regardless of length.

what about awk?

filtering by columns is a basic use case for awk, and having a separate tool to do so reduces the syntactic overhead of writing out commands. no more awk "{print $1, $2, $3}" verbosity, instead just nth 1 2 3.

License

WTFPL

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated2y ago
Forks1

Languages

Rust

Security Score

75/100

Audited on Jul 18, 2023

No findings