GrayJack / coreutils

Core utils re-implementation for UNIX/UNIX-like systems written in Rust
Mozilla Public License 2.0
106 stars 40 forks source link

Seq: Implement -f option #127

Open marcospb19 opened 4 years ago

marcospb19 commented 4 years ago

Is your feature request related to a problem? Please describe. Our seq doesn't implement -f option, but it is necessary to be considered completed.

Describe the solution you'd like Add a flag -f based on this:

seq [OPTION]... FIRST INCREMENT LAST

-f, --format=FORMAT use printf style floating-point FORMAT.

FORMAT must be suitable for printing one argument of type 'double'; it defaults to %.PRECf if FIRST, INCREMENT, and LAST are all fixed point decimal numbers with maximum precision PREC, and to %g otherwise.