bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12482: Feature Request: support for int, octal, and hex types in seq


From: Voelker, Bernhard
Subject: bug#12482: Feature Request: support for int, octal, and hex types in seq --format
Date: Fri, 21 Sep 2012 07:25:20 +0000

Craig Sanders wrote:

> seq only supports floating point types like f and g in the --format string.
>
> Other types, including i,d,o,u,x,X would also be useful.
>
> e.g. "seq --format 'prefix%02isuffix' 1 50" to print zero-padded 1-50 with
> user-specified prefix and suffix strings.

IMO custom format strings for pre- or suffixing are not seq's job.

The OP wanted a little shell solution to create 50 directories
with a fixed prefix and suffix, so what about this?

  seq -w 50 | sed 's/^/prefix/; s/$/suffix/' | xargs mkdir

Have a ncie day,
Berny





reply via email to

[Prev in Thread] Current Thread [Next in Thread]