seq-pl - Like seq, but with Perl extras
This document describes version 0.002 of seq-pl (from Perl distribution App-seq-pl), released on 2021-07-17.
Create numbers from 1 to 10:
% seq-pl 1 10
Create numbers from 01 to 10, no need to format as Perl will DWIM:
% seq-pl 01 10
Create hexadecimal numbers from 0x001 to 0x01e:
% seq-pl 1 31 -f "0x%03x"
Create letters from a to z:
% seq-pl a z
This I often do to put things under an alphabet series of folders:
% mkdir 0 `seq-pl a z`
Create letters from aa to bz:
% seq-pl aa bz
This variant of seq uses Perl's autoincrement feature to create sequence, e.g. 0..10 or "01".."10", or "a".."z". The formatting also uses Perl's sprintf() for more flexibility.
sprintf()
Please visit the project's homepage at https://metacpan.org/release/App-seq-pl.
Source repository is at https://github.com/perlancar/perl-App-seq-pl.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-seq-pl
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.
seq, the Unix utility.
Other seq variants or themes I've written: seq-intrange (from App::seq::intrange), seq-numseq (from App::seq::numseq), dateseq (from App::dateseq) which can generate date sequences, including infinite ones, seq-pericmd (from App::SeqPericmd) which lets you customize increment/step (e.g. 0.5) or limit the number of items.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2021, 2016 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::seq::pl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::seq::pl
CPAN shell
perl -MCPAN -e shell install App::seq::pl
For more information on module installation, please visit the detailed CPAN module installation guide.