—#!perl
#use 5.010001;
use
strict;
use
warnings;
use
Module::List::Tiny;
our
$AUTHORITY
=
'cpan:PERLANCAR'
;
# AUTHORITY
our
$DATE
=
'2025-02-04'
;
# DATE
our
$DIST
=
'App-CSVUtils'
;
# DIST
our
$VERSION
=
'1.036'
;
# VERSION
my
$res
= gen_read_table_func(
name
=>
'list_csvutils'
,
summary
=>
'List CSV utilities in App::CSVUtils::*'
,
table_data
=>
sub
{
no
strict
'refs'
;
## no critic: TestingAndDebugging::ProhibitNoStrict
my
$mods
= Module::List::Tiny::list_modules(
'App::CSVUtils::'
, {
list_modules
=>1,
recurse
=>0});
my
@rows
;
for
my
$mod
(
sort
keys
%$mods
) {
(
my
$util
=
$mod
) =~ s/\AApp::CSVUtils:://;
my
$func
=
$util
;
$util
=~ s/_/-/g;
my
$row
= {
name
=>
$util
};
(
my
$mod_pm
=
"$mod.pm"
) =~ s!::!/!g;
require
$mod_pm
;
my
$meta
= ${
"$mod\::SPEC"
}{
$func
};
$row
->{summary} =
$meta
->{summary};
my
%tags
=
map
{
$_
=> 1} @{
$meta
->{tags} };
for
(
keys
%tags
) {
if
(/^category:(.+)/) {
$row
->{category} = $1;
delete
$tags
{
$_
};
}
}
$row
->{reads_csv} =
delete
(
$tags
{
'reads-csv'
}) ? 1:0;
$row
->{reads_multiple_csv} =
delete
(
$tags
{
'reads-multiple-csv'
}) ? 1:0;
$row
->{writes_csv} =
delete
(
$tags
{
'writes-csv'
}) ? 1:0;
$row
->{writes_multiple_csv} =
delete
(
$tags
{
'writes-multiple-csv'
}) ? 1:0;
$row
->{tags} =
join
(
", "
,
sort
keys
%tags
);
push
@rows
,
$row
;
}
{
data
=> \
@rows
};
},
table_def
=> {
fields
=> {
name
=> {
schema
=>
'str*'
,
pos
=> 0,
sortable
=> 1,
},
summary
=> {
schema
=>
'str*'
,
pos
=> 1,
sortable
=> 1,
},
category
=> {
schema
=>
'str*'
,
pos
=> 2,
sortable
=> 1,
},
reads_csv
=> {
schema
=>
'bool*'
,
pos
=> 3,
sortable
=> 1,
},
reads_multiple_csv
=> {
schema
=>
'bool*'
,
pos
=> 4,
sortable
=> 1,
},
writes_csv
=> {
schema
=>
'bool*'
,
pos
=> 5,
sortable
=> 1,
},
writes_multiple_csv
=> {
schema
=>
'bool*'
,
pos
=> 6,
sortable
=> 1,
},
tags
=> {
schema
=>
'str*'
,
pos
=> 7,
sortable
=> 1,
},
},
pk
=>
'name'
,
},
extra_props
=> {
examples
=> [
{
summary
=>
'List CSV utilities that munge CSV data'
,
argv
=> [
"-l"
,
"--category-is"
,
"munging"
],
},
{
summary
=>
'List CSV utilities that reads multiple CSV files'
,
argv
=> [
"-l"
,
"--reads-multiple-csv"
],
},
],
},
);
die
"Can't generate function: $res->[0] - $res->[1]"
unless
$res
->[0] == 200;
Perinci::CmdLine::Any->new(
url
=>
'/main/list_csvutils'
,
read_config
=> 0,
read_env
=> 0,
)->run;
# ABSTRACT: List CSV utilities in App::CSVUtils::*
# PODNAME: list-csvutils
__END__
=pod
=encoding UTF-8
=head1 NAME
list-csvutils - List CSV utilities in App::CSVUtils::*
=head1 VERSION
This document describes version 1.036 of list-csvutils (from Perl distribution App-CSVUtils), released on 2025-02-04.
=head1 SYNOPSIS
B<list-csvutils> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)
B<list-csvutils> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)
B<list-csvutils> [B<L<--category-contains|/"--category-contains=s">>=I<str>] [(B<L<--category-in|/"--category-in=s@">>=I<str>)+|B<L<--category-in-json|/"--category-in=s@">>=I<json>] [B<L<--category-is|/"--category-is=s">>=I<str>] [B<L<--category-isnt|/"--category-isnt=s">>=I<str>] [B<L<--category-max|/"--category-max=s">>=I<str>] [B<L<--category-min|/"--category-min=s">>=I<str>] [B<L<--category-not-contains|/"--category-not-contains=s">>=I<str>] [(B<L<--category-not-in|/"--category-not-in=s@">>=I<str>)+|B<L<--category-not-in-json|/"--category-not-in=s@">>=I<json>] [B<L<--category-xmax|/"--category-xmax=s">>=I<str>] [B<L<--category-xmin|/"--category-xmin=s">>=I<str>] [B<L<--category|/"--category=s">>=I<str>] [B<L<--detail|/"--detail, -l">>|B<L<-l|/"--detail, -l">>|B<L<--no-detail|/"--detail, -l">>|B<L<--nodetail|/"--detail, -l">>] [(B<L<--exclude-field|/"--exclude-fields-json=s">>=I<str>)+|B<L<--exclude-fields-json|/"--exclude-fields-json=s">>=I<json>] [(B<L<--field|/"--fields-json=s">>=I<str>)+|B<L<--fields-json|/"--fields-json=s">>=I<json>] [B<L<--format|/"--format=s">>=I<name>|B<L<--json|/"--json">>] [B<L<--(no)naked-res|/"--naked-res">>] [B<L<--name-contains|/"--name-contains=s">>=I<str>] [(B<L<--name-in|/"--name-in=s@">>=I<str>)+|B<L<--name-in-json|/"--name-in=s@">>=I<json>] [B<L<--name-is|/"--name-is=s">>=I<str>] [B<L<--name-isnt|/"--name-isnt=s">>=I<str>] [B<L<--name-max|/"--name-max=s">>=I<str>] [B<L<--name-min|/"--name-min=s">>=I<str>] [B<L<--name-not-contains|/"--name-not-contains=s">>=I<str>] [(B<L<--name-not-in|/"--name-not-in=s@">>=I<str>)+|B<L<--name-not-in-json|/"--name-not-in=s@">>=I<json>] [B<L<--name-xmax|/"--name-xmax=s">>=I<str>] [B<L<--name-xmin|/"--name-xmin=s">>=I<str>] [B<L<--name|/"--name=s">>=I<str>] [B<L<--page-result|/"--page-result">>[=I<program>]|B<L<--view-result|/"--view-result">>[=I<program>]] [B<L<--query-boolean|/"--query-boolean=s">>=I<str>|B<L<--and|/"--query-boolean=s">>|B<L<--or|/"--query-boolean=s">>] [(B<L<--query|/"--query=s@">>=I<str>)+|B<L<--queries-json|/"--query=s@">>=I<json>|(B<L<-q|/"--query=s@">>=I<str>)+] [B<L<--random|/"--random">>|B<L<--no-random|/"--random">>|B<L<--norandom|/"--random">>] [B<L<--reads-csv|/"--reads-csv">>|B<L<--no-reads-csv|/"--reads-csv">>|B<L<--noreads-csv|/"--reads-csv">>] [B<L<--reads-csv-is|/"--reads-csv-is">>|B<L<--no-reads-csv-is|/"--reads-csv-is">>|B<L<--noreads-csv-is|/"--reads-csv-is">>] [B<L<--reads-csv-isnt|/"--reads-csv-isnt">>|B<L<--no-reads-csv-isnt|/"--reads-csv-isnt">>|B<L<--noreads-csv-isnt|/"--reads-csv-isnt">>] [B<L<--reads-multiple-csv|/"--reads-multiple-csv">>|B<L<--no-reads-multiple-csv|/"--reads-multiple-csv">>|B<L<--noreads-multiple-csv|/"--reads-multiple-csv">>] [B<L<--reads-multiple-csv-is|/"--reads-multiple-csv-is">>|B<L<--no-reads-multiple-csv-is|/"--reads-multiple-csv-is">>|B<L<--noreads-multiple-csv-is|/"--reads-multiple-csv-is">>] [B<L<--reads-multiple-csv-isnt|/"--reads-multiple-csv-isnt">>|B<L<--no-reads-multiple-csv-isnt|/"--reads-multiple-csv-isnt">>|B<L<--noreads-multiple-csv-isnt|/"--reads-multiple-csv-isnt">>] [B<L<--result-limit|/"--result-limit=s">>=I<int>] [B<L<--result-start|/"--result-start=s">>=I<int>] [(B<L<--sort|/"--sort=s@">>=I<str>)+|B<L<--sort-json|/"--sort=s@">>=I<json>] [B<L<--summary-contains|/"--summary-contains=s">>=I<str>] [(B<L<--summary-in|/"--summary-in=s@">>=I<str>)+|B<L<--summary-in-json|/"--summary-in=s@">>=I<json>] [B<L<--summary-is|/"--summary-is=s">>=I<str>] [B<L<--summary-isnt|/"--summary-isnt=s">>=I<str>] [B<L<--summary-max|/"--summary-max=s">>=I<str>] [B<L<--summary-min|/"--summary-min=s">>=I<str>] [B<L<--summary-not-contains|/"--summary-not-contains=s">>=I<str>] [(B<L<--summary-not-in|/"--summary-not-in=s@">>=I<str>)+|B<L<--summary-not-in-json|/"--summary-not-in=s@">>=I<json>] [B<L<--summary-xmax|/"--summary-xmax=s">>=I<str>] [B<L<--summary-xmin|/"--summary-xmin=s">>=I<str>] [B<L<--summary|/"--summary=s">>=I<str>] [B<L<--tags-contains|/"--tags-contains=s">>=I<str>] [(B<L<--tags-in|/"--tags-in=s@">>=I<str>)+|B<L<--tags-in-json|/"--tags-in=s@">>=I<json>] [B<L<--tags-is|/"--tags-is=s">>=I<str>] [B<L<--tags-isnt|/"--tags-isnt=s">>=I<str>] [B<L<--tags-max|/"--tags-max=s">>=I<str>] [B<L<--tags-min|/"--tags-min=s">>=I<str>] [B<L<--tags-not-contains|/"--tags-not-contains=s">>=I<str>] [(B<L<--tags-not-in|/"--tags-not-in=s@">>=I<str>)+|B<L<--tags-not-in-json|/"--tags-not-in=s@">>=I<json>] [B<L<--tags-xmax|/"--tags-xmax=s">>=I<str>] [B<L<--tags-xmin|/"--tags-xmin=s">>=I<str>] [B<L<--tags|/"--tags=s">>=I<str>] [B<L<--with-field-names|/"--with-field-names">>|B<L<--without-field-names|/"--with-field-names">>] [B<L<--writes-csv|/"--writes-csv">>|B<L<--no-writes-csv|/"--writes-csv">>|B<L<--nowrites-csv|/"--writes-csv">>] [B<L<--writes-csv-is|/"--writes-csv-is">>|B<L<--no-writes-csv-is|/"--writes-csv-is">>|B<L<--nowrites-csv-is|/"--writes-csv-is">>] [B<L<--writes-csv-isnt|/"--writes-csv-isnt">>|B<L<--no-writes-csv-isnt|/"--writes-csv-isnt">>|B<L<--nowrites-csv-isnt|/"--writes-csv-isnt">>] [B<L<--writes-multiple-csv|/"--writes-multiple-csv">>|B<L<--no-writes-multiple-csv|/"--writes-multiple-csv">>|B<L<--nowrites-multiple-csv|/"--writes-multiple-csv">>] [B<L<--writes-multiple-csv-is|/"--writes-multiple-csv-is">>|B<L<--no-writes-multiple-csv-is|/"--writes-multiple-csv-is">>|B<L<--nowrites-multiple-csv-is|/"--writes-multiple-csv-is">>] [B<L<--writes-multiple-csv-isnt|/"--writes-multiple-csv-isnt">>|B<L<--no-writes-multiple-csv-isnt|/"--writes-multiple-csv-isnt">>|B<L<--nowrites-multiple-csv-isnt|/"--writes-multiple-csv-isnt">>] -- [I<L<query|/"--query=s@">>] ...
See examples in the L</EXAMPLES> section.
=head1 DESCRIPTION
REPLACE ME
=head1 OPTIONS
C<*> marks required options.
=head2 Field selection options
=over
=item B<--detail>, B<-l>
Return array of full records instead of just ID fields.
By default, only the key (ID) field is returned per result entry.
=item B<--exclude-field>=I<s@>
Select fields to return.
Can be specified multiple times.
=item B<--exclude-fields-json>=I<s>
Select fields to return (JSON-encoded).
See C<--exclude-field>.
=item B<--field>=I<s@>
Select fields to return.
Can be specified multiple times.
=item B<--fields-json>=I<s>
Select fields to return (JSON-encoded).
See C<--field>.
=item B<--with-field-names>
Return field names in each record (as hash/associative array).
When enabled, function will return each record as hash/associative array
(field name => value pairs). Otherwise, function will return each record
as list/array (field value, field value, ...).
=back
=head2 Filtering for category options
=over
=item B<--category-contains>=I<s>
Only return records where the 'category' field contains specified text.
=item B<--category-in-json>=I<s>
Only return records where the 'category' field is in the specified values (JSON-encoded).
See C<--category-in>.
=item B<--category-in>=I<s@>
Only return records where the 'category' field is in the specified values.
Can be specified multiple times.
=item B<--category-is>=I<s>
Only return records where the 'category' field equals specified value.
=item B<--category-isnt>=I<s>
Only return records where the 'category' field does not equal specified value.
=item B<--category-max>=I<s>
Only return records where the 'category' field is less than or equal to specified value.
=item B<--category-min>=I<s>
Only return records where the 'category' field is greater than or equal to specified value.
=item B<--category-not-contains>=I<s>
Only return records where the 'category' field does not contain specified text.
=item B<--category-not-in-json>=I<s>
Only return records where the 'category' field is not in the specified values (JSON-encoded).
See C<--category-not-in>.
=item B<--category-not-in>=I<s@>
Only return records where the 'category' field is not in the specified values.
Can be specified multiple times.
=item B<--category-xmax>=I<s>
Only return records where the 'category' field is less than specified value.
=item B<--category-xmin>=I<s>
Only return records where the 'category' field is greater than specified value.
=item B<--category>=I<s>
Only return records where the 'category' field equals specified value.
=back
=head2 Filtering for name options
=over
=item B<--name-contains>=I<s>
Only return records where the 'name' field contains specified text.
=item B<--name-in-json>=I<s>
Only return records where the 'name' field is in the specified values (JSON-encoded).
See C<--name-in>.
=item B<--name-in>=I<s@>
Only return records where the 'name' field is in the specified values.
Can be specified multiple times.
=item B<--name-is>=I<s>
Only return records where the 'name' field equals specified value.
=item B<--name-isnt>=I<s>
Only return records where the 'name' field does not equal specified value.
=item B<--name-max>=I<s>
Only return records where the 'name' field is less than or equal to specified value.
=item B<--name-min>=I<s>
Only return records where the 'name' field is greater than or equal to specified value.
=item B<--name-not-contains>=I<s>
Only return records where the 'name' field does not contain specified text.
=item B<--name-not-in-json>=I<s>
Only return records where the 'name' field is not in the specified values (JSON-encoded).
See C<--name-not-in>.
=item B<--name-not-in>=I<s@>
Only return records where the 'name' field is not in the specified values.
Can be specified multiple times.
=item B<--name-xmax>=I<s>
Only return records where the 'name' field is less than specified value.
=item B<--name-xmin>=I<s>
Only return records where the 'name' field is greater than specified value.
=item B<--name>=I<s>
Only return records where the 'name' field equals specified value.
=back
=head2 Filtering for reads_csv options
=over
=item B<--reads-csv>
Only return records where the 'reads_csv' field equals specified value.
=item B<--reads-csv-is>
Only return records where the 'reads_csv' field equals specified value.
=item B<--reads-csv-isnt>
Only return records where the 'reads_csv' field does not equal specified value.
=back
=head2 Filtering for reads_multiple_csv options
=over
=item B<--reads-multiple-csv>
Only return records where the 'reads_multiple_csv' field equals specified value.
=item B<--reads-multiple-csv-is>
Only return records where the 'reads_multiple_csv' field equals specified value.
=item B<--reads-multiple-csv-isnt>
Only return records where the 'reads_multiple_csv' field does not equal specified value.
=back
=head2 Filtering for summary options
=over
=item B<--summary-contains>=I<s>
Only return records where the 'summary' field contains specified text.
=item B<--summary-in-json>=I<s>
Only return records where the 'summary' field is in the specified values (JSON-encoded).
See C<--summary-in>.
=item B<--summary-in>=I<s@>
Only return records where the 'summary' field is in the specified values.
Can be specified multiple times.
=item B<--summary-is>=I<s>
Only return records where the 'summary' field equals specified value.
=item B<--summary-isnt>=I<s>
Only return records where the 'summary' field does not equal specified value.
=item B<--summary-max>=I<s>
Only return records where the 'summary' field is less than or equal to specified value.
=item B<--summary-min>=I<s>
Only return records where the 'summary' field is greater than or equal to specified value.
=item B<--summary-not-contains>=I<s>
Only return records where the 'summary' field does not contain specified text.
=item B<--summary-not-in-json>=I<s>
Only return records where the 'summary' field is not in the specified values (JSON-encoded).
See C<--summary-not-in>.
=item B<--summary-not-in>=I<s@>
Only return records where the 'summary' field is not in the specified values.
Can be specified multiple times.
=item B<--summary-xmax>=I<s>
Only return records where the 'summary' field is less than specified value.
=item B<--summary-xmin>=I<s>
Only return records where the 'summary' field is greater than specified value.
=item B<--summary>=I<s>
Only return records where the 'summary' field equals specified value.
=back
=head2 Filtering for tags options
=over
=item B<--tags-contains>=I<s>
Only return records where the 'tags' field contains specified text.
=item B<--tags-in-json>=I<s>
Only return records where the 'tags' field is in the specified values (JSON-encoded).
See C<--tags-in>.
=item B<--tags-in>=I<s@>
Only return records where the 'tags' field is in the specified values.
Can be specified multiple times.
=item B<--tags-is>=I<s>
Only return records where the 'tags' field equals specified value.
=item B<--tags-isnt>=I<s>
Only return records where the 'tags' field does not equal specified value.
=item B<--tags-max>=I<s>
Only return records where the 'tags' field is less than or equal to specified value.
=item B<--tags-min>=I<s>
Only return records where the 'tags' field is greater than or equal to specified value.
=item B<--tags-not-contains>=I<s>
Only return records where the 'tags' field does not contain specified text.
=item B<--tags-not-in-json>=I<s>
Only return records where the 'tags' field is not in the specified values (JSON-encoded).
See C<--tags-not-in>.
=item B<--tags-not-in>=I<s@>
Only return records where the 'tags' field is not in the specified values.
Can be specified multiple times.
=item B<--tags-xmax>=I<s>
Only return records where the 'tags' field is less than specified value.
=item B<--tags-xmin>=I<s>
Only return records where the 'tags' field is greater than specified value.
=item B<--tags>=I<s>
Only return records where the 'tags' field equals specified value.
=back
=head2 Filtering for writes_csv options
=over
=item B<--writes-csv>
Only return records where the 'writes_csv' field equals specified value.
=item B<--writes-csv-is>
Only return records where the 'writes_csv' field equals specified value.
=item B<--writes-csv-isnt>
Only return records where the 'writes_csv' field does not equal specified value.
=back
=head2 Filtering for writes_multiple_csv options
=over
=item B<--writes-multiple-csv>
Only return records where the 'writes_multiple_csv' field equals specified value.
=item B<--writes-multiple-csv-is>
Only return records where the 'writes_multiple_csv' field equals specified value.
=item B<--writes-multiple-csv-isnt>
Only return records where the 'writes_multiple_csv' field does not equal specified value.
=back
=head2 Filtering options
=over
=item B<--and>
Shortcut for --query-boolean=and.
See C<--query-boolean>.
=item B<--or>
Shortcut for --query-boolean=or.
See C<--query-boolean>.
=item B<--queries-json>=I<s>, B<-q>
Search (JSON-encoded).
See C<--query>.
Can also be specified as the 1st command-line argument and onwards.
=item B<--query-boolean>=I<s>
Whether records must match all search queries ('and') or just one ('or').
Default value:
"and"
Valid values:
["and","or"]
If set to C<and>, all queries must match; if set to C<or>, only one query should
match. See the C<queries> option for more details on searching.
=item B<--query>=I<s@>
Search.
This will search all searchable fields with one or more specified queries. Each
query can be in the form of C<-FOO> (dash prefix notation) to require that the
fields do not contain specified string, or C</FOO/> to use regular expression.
All queries must match if the C<query_boolean> option is set to C<and>; only one
query should match if the C<query_boolean> option is set to C<or>.
Can also be specified as the 1st command-line argument and onwards.
Can be specified multiple times.
=back
=head2 Ordering options
=over
=item B<--random>
Return records in random order.
=item B<--sort-json>=I<s>
Order records according to certain field(s) (JSON-encoded).
See C<--sort>.
=item B<--sort>=I<s@>
Order records according to certain field(s).
A list of field names separated by comma. Each field can be prefixed with '-' to
specify descending order instead of the default ascending.
Can be specified multiple times.
=back
=head2 Output options
=over
=item B<--format>=I<s>
Choose output format, e.g. json, text.
Default value:
undef
Output can be displayed in multiple formats, and a suitable default format is
chosen depending on the application and/or whether output destination is
interactive terminal (i.e. whether output is piped). This option specifically
chooses an output format.
=item B<--json>
Set output format to json.
=item B<--naked-res>
When outputing as JSON, strip result envelope.
Default value:
0
By default, when outputing as JSON, the full enveloped result is returned, e.g.:
[200,"OK",[1,2,3],{"func.extra"=>4}]
The reason is so you can get the status (1st element), status message (2nd
element) as well as result metadata/extra result (4th element) instead of just
the result (3rd element). However, sometimes you want just the result, e.g. when
you want to pipe the result for more post-processing. In this case you can use
C<--naked-res> so you just get:
[1,2,3]
=item B<--page-result>
Filter output through a pager.
This option will pipe the output to a specified pager program. If pager program
is not specified, a suitable default e.g. C<less> is chosen.
=item B<--view-result>
View output using a viewer.
This option will first save the output to a temporary file, then open a viewer
program to view the temporary file. If a viewer program is not chosen, a
suitable default, e.g. the browser, is chosen.
=back
=head2 Paging options
=over
=item B<--result-limit>=I<s>
Only return a certain number of records.
=item B<--result-start>=I<s>
Only return starting from the n'th record.
Default value:
1
=back
=head2 Other options
=over
=item B<--help>, B<-h>, B<-?>
Display help message and exit.
=item B<--version>, B<-v>
Display program's version and exit.
=back
=head1 COMPLETION
This script has shell tab completion capability with support for several
shells.
=head2 bash
To activate bash completion for this script, put:
complete -C list-csvutils list-csvutils
in your bash startup (e.g. F<~/.bashrc>). Your next shell session will then
recognize tab completion for the command. Or, you can also directly execute the
line above in your shell to activate immediately.
It is recommended, however, that you install modules using L<cpanm-shcompgen>
which can activate shell completion for scripts immediately.
=head2 tcsh
To activate tcsh completion for this script, put:
complete list-csvutils 'p/*/`list-csvutils`/'
in your tcsh startup (e.g. F<~/.tcshrc>). Your next shell session will then
recognize tab completion for the command. Or, you can also directly execute the
line above in your shell to activate immediately.
It is also recommended to install L<shcompgen> (see above).
=head2 other shells
For fish and zsh, install L<shcompgen> as described above.
=head1 EXAMPLES
=head2 List CSV utilities that munge CSV data
% list-csvutils -l --category-is munging
+---------------------+-------------------------------------------------------------------------+----------+-----------+--------------------+------------+---------------------+-----------------+
| name | summary | category | reads_csv | reads_multiple_csv | writes_csv | writes_multiple_csv | tags |
+---------------------+-------------------------------------------------------------------------+----------+-----------+--------------------+------------+---------------------+-----------------+
| csv-add-fields | Add one or more fields to CSV file | munging | 1 | 0 | 1 | 0 | adds-fields |
| csv-csv | Convert CSV to CSV | munging | 1 | 0 | 1 | 0 | |
| csv-delete-fields | Delete one or more fields from CSV file | munging | 1 | 0 | 1 | 0 | deletes-fields |
| csv-ltrim | Left-trim (remove leading whitespace) values and/or fields in CSV | munging | 1 | 0 | 1 | 0 | modifies-values |
| csv-munge-field | Munge a field in every row of CSV file with Perl code | munging | 1 | 0 | 1 | 0 | modifies-field |
| csv-munge-rows | Modify CSV data rows using Perl code | munging | 1 | 0 | 1 | 0 | modifies-rows |
| csv-replace-newline | Replace newlines in CSV values | munging | 1 | 0 | 1 | 0 | modifies-rows |
| csv-rtrim | Right-trim (remove trailing whitespace) values and/or fields in CSV | munging | 1 | 0 | 1 | 0 | modifies-values |
| csv-transpose | Transpose a CSV | munging | 1 | 0 | 1 | 0 | |
| csv-trim | Trim (remove leading & trailing whitespace) values and/or fields in CSV | munging | 1 | 0 | 1 | 0 | modifies-values |
+---------------------+-------------------------------------------------------------------------+----------+-----------+--------------------+------------+---------------------+-----------------+
=head2 List CSV utilities that reads multiple CSV files
% list-csvutils -l --reads-multiple-csv
+-------------------+----------------------------------------------------------------------------------------------------------------------------+------------+-----------+--------------------+------------+---------------------+---------------+
| name | summary | category | reads_csv | reads_multiple_csv | writes_csv | writes_multiple_csv | tags |
+-------------------+----------------------------------------------------------------------------------------------------------------------------+------------+-----------+--------------------+------------+---------------------+---------------+
| csv-cmp | Compare two CSV files value by value | comparing | 1 | 1 | 1 | 0 | accepts-regex |
| csv-concat | Concatenate several CSV files together, collecting all the fields | combining | 1 | 1 | 1 | 0 | join, merge |
| csv-lookup-fields | Fill fields of a CSV file from another | templating | 1 | 1 | 1 | 0 | |
| csv-setop | Set operation (union/unique concatenation of rows, intersection/common rows, difference of rows) against several CSV files | combining | 1 | 1 | 1 | 0 | set |
+-------------------+----------------------------------------------------------------------------------------------------------------------------+------------+-----------+--------------------+------------+---------------------+---------------+
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/App-CSVUtils>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-App-CSVUtils>.
=head1 SEE ALSO
L<show-sah-schema-module>
L<list-sah-schemas-modules>
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 CONTRIBUTING
To contribute, you can send patches by email/via RT, or send pull requests on
GitHub.
Most of the time, you don't need to build the distribution yourself. You can
simply modify the code, then test via:
% prove -l
If you want to build the distribution (e.g. to try to install it locally on your
system), you can install L<Dist::Zilla>,
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
that are considered a bug and can be reported to me.
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2025 by perlancar <perlancar@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.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-CSVUtils>
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=cut