seq: additional feature: ranges of letters
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Feature description
seq supports ranges of letters in addition to numbers
e.g.:
$ seq -s ' ' b
a b
$ seq -s ' ' b e
b c d d
$ seq -s ' ' F 2 L
F H J L
-s and -w will not be supported with letter ranges for obvious reasons.
Increment still has to be a number.
If the start argument is a letter, the end argument also has to be a letter of the same case.
Am I willing to implement this?
Yes
Additional Context
Fish shell doesn't have ranges with [] like bash -c 'echo [a-z]* [1-3]*' and instead suggests to use seq, however seq doesn't support letters.
If you don't want this in uutils, I may create a separate seq tool that supports this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the seq implementation and its existing numeric range handling. Define the letter-range cases described in the issue, including case matching, numeric increments, and the stated -s and -w restrictions; done means these examples and boundary cases behave consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100