3 stable releases
1.0.2 | Mar 14, 2023 |
---|---|
1.0.0 | Mar 13, 2023 |
#4 in #ps
7KB
128 lines
fip
A Simple Command Line Field Parser, roughly emulating awk '{print $<field-number>}'
. Accepts input from StdIn, produces output to StdOut. Field Number is 0-indexed.
See fip --help
for more details.
Installation
cargo install fip
or download from the releases pagge
Examples
- Get Process IDs from ps aux:
ps aux | fip 1
- Get the values of the third field from a .csv-file:
fip -s, 2 < file.csv
Dependencies
~1.2–1.8MB
~34K SLoC