GNU bug report logs - #12482
Feature Request: support for int, octal, and hex types in seq --format

Previous Next

Package: coreutils;

Reported by: Craig Sanders <cas <at> taz.net.au>

Date: Fri, 21 Sep 2012 01:06:02 UTC

Severity: wishlist

Full log


Message #8 received at 12482 <at> debbugs.gnu.org (full text, mbox):

From: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
To: Craig Sanders <cas <at> taz.net.au>, "12482 <at> debbugs.gnu.org"
	<12482 <at> debbugs.gnu.org>
Subject: RE: 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




This bug report was last modified 12 years and 277 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.