App-CSVUtils
view release on metacpan or search on metacpan
script/csv2tsv view on Meta::CPAN
#!perl
use 5.010001;
use strict;
use warnings;
use Text::CSV_XS;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2025-02-04'; # DATE
our $DIST = 'App-CSVUtils'; # DIST
our $VERSION = '1.036'; # VERSION
binmode STDIN, ':encoding(utf8)';
binmode STDOUT, ':encoding(utf8)';
my $csv = Text::CSV_XS->new({binary=>1});
while (my $row = $csv->getline(\*ARGV)) {
print join("\t", @$row), "\n";
}
# ABSTRACT: Convert CSV to TSV
# PODNAME: csv2tsv
__END__
=pod
=encoding UTF-8
=head1 NAME
csv2tsv - Convert CSV to TSV
=head1 VERSION
This document describes version 1.036 of csv2tsv (from Perl distribution App-CSVUtils), released on 2025-02-04.
=head1 SYNOPSIS
% csv2tsv INPUT.csv > OUTPUT.tsv
=head1 DESCRIPTION
B<Common notes for the utilities:>
Encoding: The utilities in this module/distribution accept and emit UTF8 text.
=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<tsv2csv>
Other CSV-related utilities in L<App::CSVUtils>.
Other TSV-related utilities in L<App::TSVUtils>.
L<App::TextTableUtils>
L<App::SerializeUtils>
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 CONTRIBUTING
( run in 0.385 second using v1.01-cache-2.11-cpan-39bf76dae61 )