#command-line #csv #arguments-parser #field #awk #process-id #ps

app fip

A Simple Field Parser, roughly emulating "awk '{print $<field-number>}'"

3 stable releases

1.0.2 Mar 14, 2023
1.0.0 Mar 13, 2023

#7 in #ps

MIT license

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.1–1.7MB
~32K SLoC