- EXIT CODES
- SEE ALSO
- COPYRIGHT AND LICENSE
lensort - Sort lines of text by their length
This document describes version 0.002 of lensort (from Perl distribution App-lensort), released on 2018-07-26.
lensort [OPTION]... [FILE]...
one two three four
Sample output (
one two four three
Sample output (
three four two one
This utility sorts lines of text by their length. The default is shortest first (if
-r is given, will show longest line first). Lines with same length will be sorted by appearance (first in first out).
0 on success.
99 on command-line options error.
- --reverse, -r
Show longest line first instead of the default shortest line first. Also, under
-rline 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.
To sort numerically or alphabetically, use the Unix command sort.
To print the longest line, you can use
To sort by several other criteria, check out sortsub and the various
Sort::Sub::* backend modules.
This software is copyright (c) 2018 by firstname.lastname@example.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.