A simple Unix tool to describe a list of numbers (typically, if it is too long for visual inspection), like the output of one or more seq
commands, by a set of rules, similar to what the seq
commands would take to regenerate the same list.
Documentation to be completed (as of November 2023).
The option SEP=""
generates a compact output format (without spaces).
The make tests
command yields an illustrative list of examples for usage.
Not-number lines are ignored, but printed out.
Works on a list of numbers given line by line. Use other tools to cut your lines, if you have a multi-number lines type of input.
This tool can by installed standalone in any directory, which is part of the $PATH
variable, e.g. ~/.local/bin/
, ~/bin
, /usr/local/bin
, /usr/bin
, โฆ.
A cleaner, more standard way should be provided in the future.
Only prerequisite is the installation of awk
.
As sequences of numbers can be generated
I would be glad to hear from you about missing cases. Create a new issue on github for that, including providing patches (pull requests).