seq over unicode characters, e.g. to generate ranges of letters or emojis
| src | use clap_mangen to generate a man page | |
| .envrc | add cargo metadata | |
| .gitignore | add nix flake | |
| build.rs | use clap_mangen to generate a man page | |
| Cargo.lock | bump version | |
| Cargo.toml | bump version | |
| flake.lock | add nix flake | |
| flake.nix | add nix flake | |
| LICENSE | add README and LICENSE | |
| README.md | use clap | |
seq-unicode
This is a simple rust program to seq over ranges of unicode characters.
e.g.
$ sequ a z
a
b
c
[...]
y
z
$ sequ b 3 g
b
f
$ sequ 🍆 🍑
🍆
🍇
🍈
🍉
🍊
🍋
🍌
🍍
🍎
🍏
🍐
🍑
This is especially useful with fish-shell missing character range
matchers like bash has with e.g. [a-z].
Syntax
either:
$ sequ <start-char> <end-char>
or:
$ sequ <start-char> <increment> <end-char>
<start-char> and <end-char> have to be valid characters.
<increment> has to be a positive integer.
Caveats
Beware that entering vastly different characters can result in huge ranges of characters being printed:
$ sequ a ඞ | wc -l
3390
$ sequ p 🐢 | wc -l
125875
Licensing
GPL-3.0-or-later