Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seq: implement -f FORMAT option #2918

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Conversation

jfinkels
Copy link
Collaborator

Add support for the -f FORMAT option to seq. This option instructs
the program to render each value in the generated sequence using a
given printf-style floating point format. For example,

$ seq -f %.2f 0.0 0.1 0.5
0.00
0.10
0.20
0.30
0.40
0.50

Fixes issue #2616.

This will cause GNU tests fmt-1 through fmt-5 in tests/misc/seq.pl.

Add support for the `-f FORMAT` option to `seq`. This option instructs
the program to render each value in the generated sequence using a
given `printf`-style floating point format. For example,

    $ seq -f %.2f 0.0 0.1 0.5
    0.00
    0.10
    0.20
    0.30
    0.40
    0.50

Fixes issue uutils#2616.
@sylvestre sylvestre merged commit 9dbff22 into uutils:main Jan 26, 2022
@jfinkels jfinkels deleted the seq-format-option branch January 29, 2022 02:00
@jfinkels jfinkels mentioned this pull request Feb 13, 2022
m11o added a commit to m11o/coreutils-rs that referenced this pull request Apr 24, 2023
`-f` option is implemented in uutils#2918
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants