ock

Crates.ioock
lib.rsock
version0.1.0
sourcesrc
created_at2022-11-20 15:41:38.958972
updated_at2022-11-20 15:41:38.958972
descriptionA simple, fast command line utility for working with table-like data
homepage
repository
max_upload_size
id719174
size22,273
William W. Marx (williamwmarx)

documentation

README

ock

A simpler, faster replacement for most awk use cases, ock is a command line utility for working with table-like data.

Installation

git clone https://github.com/williamwmarx/ock
cd ock
cargo build

Usage

Select a column

ps aux | ock -c 2
ps aux | ock -c pid

Select a row

ps aux | ock -r caffeinate

Selecting ranges

ps aux | ock -c pid -r 0:10

Selecting multiple ranges

ps aux | ock -c name, pid -r 0:10

Regex

ps aux | ock -c name, pid -r "python(2|3)"

Delimiters

ock  -r 1:10:2 -c 1,5 --column-delimiter "," data.csv
Commit count: 0

cargo fmt