lensort - Sort lines of text by their length
This document describes version 0.001 of lensort (from Perl distribution App-lensort), released on 2018-07-26.
lensort [OPTION]... [FILE]...
Sample input:
one two three four
Sample output (lensort):
lensort
one two four three
Sample output (lensort -r):
lensort -r
three four two one
This utility sorts lines of text by their length. The default is shortest first (if --reverse a.k.a. -r is given, will show longest line first). Lines with same length will be sorted by appearance (first in first out).
--reverse
-r
0 on success.
99 on command-line options error.
Show longest line first instead of the default shortest line first. Also, under -r line that appears later will be shown earlier (last-in-first-out) instead of the default first-in-first-out.
Please visit the project's homepage at https://metacpan.org/release/App-lensort.
Source repository is at https://github.com/perlancar/perl-App-lensort.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-lensort
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.
sort
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018 by 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.
To install App::lensort, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::lensort
CPAN shell
perl -MCPAN -e shell install App::lensort
For more information on module installation, please visit the detailed CPAN module installation guide.