Cstools
view release on metacpan or search on metacpan
bin/cssort.PL view on Meta::CPAN
use Config;
my $filename = $0;
$filename =~ s/\.PL$//;
open OUT,">$filename" or die "Can't create $filename: $!";
chmod(0755, $filename);
print "Extracting $filename (with #! substitution)\n";
print OUT <<"EOHEADER";
$Config{'startperl'} -w
eval 'exec perl -S \$0 "\$@"'
if 0;
EOHEADER
print OUT <<'EOBODY';
use vars qw( $running_under_some_shell );
=head1 NAME
cssort -- Czech sort
=head1 FORMAT
cssort [ C<-c>B<list> | C<-f>B<list> [C<-d>B<regexp>]] [files ...]
=head1 SYNOPSIS
cssort -c10-15,50-,25-45 < file
cssort -f3,5-6 < file
cssort -f3,5-6 -s: < file
=head1 DESCRIPTION
Cssort is a utility that sorts input lines according to rules used in
the Czech language. You can run it without any options, then it just
uses whole lines for sorting. With the options, it's possible to
specify parts of the lines to be used for comparison.
=over 4
=item B<list>
A comma-separated list of integer field numbers or field ranges. The
are indexed from 1 and if a range is open (eg. C<5->), it means all
remaining fields from the starting number.
=item B<-c>
Stands for columns and the list that follows specifies byte ranges on
the line. You will probably use this option to sort data with fixed
width fields.
=item B<-f>
Fields that will be used for sort.
=item B<-d>
Delimiter that separates fields in the B<-f> option. It is a Perl
regular expression, the default is C<[ \t]+>, which means any number
of spaces or tabs in a row.
=back
( run in 0.999 second using v1.01-cache-2.11-cpan-140bd7fdf52 )