This was done to help me query a csv file with acronyms and their meanings. But I guess it can be used for any csv file that has two columns of which you want to use one to get the other.
cargo install acro
brew tap nilventosa/acro
brew install acro
acro [OPTIONS] <acronym>
Arguments:
<acronym>
the acronym to query
Options (short, long, env variable):
- -f, --file, ACRO_FILE <file>
the csv file with the acronyms and definitions - -a, --acro, ACRO_COLUMN <acro_column>
the column with the acronyms [default: 1] - -d, --definition, DEFINITION_COLUMN <definition_column>
the column with the definitions [default: 2] - -D, --delimiter, ACRO_DELIMITER <delimiter>
delimiter character between columns [default: ','] - -H, --header, ACRO_HEADER
flag if there is a header line - -c, --color, ACRO_COLOR
disables color output - -h, --help
Print help information - -V, --version
Print version information