csvgrep - search for patterns in a CSV and display results in a table
csvgrep <pattern> <file> csvgrep -d <directory> <pattern>
csvgrep is a script that lets you look for a pattern in a CSV file, and then displays the results in a text table.
The simplest usage is to look for a word in a CSV:
csvgrep snorlax pokemon.csv
As with regular grep, you can use the -i switch to make it case-insensitive:
csvgrep -i snorlax pokemon.csv
This assumes that the first row in the CSV is a header row, and uses that as the header in the output.
Neil Bowers <neilb@cpan.org>
This software is copyright (c) 2017 by Neil Bowers <neilb@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install csvgrep, copy and paste the appropriate command in to your terminal.
cpanm
cpanm csvgrep
CPAN shell
perl -MCPAN -e shell install csvgrep
For more information on module installation, please visit the detailed CPAN module installation guide.