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