GNU bug report logs - #20874
Split -d skips to 9000 at 90

Previous Next

Package: coreutils;

Reported by: Kevin Tan <jurassicplayer75 <at> gmail.com>

Date: Mon, 22 Jun 2015 15:25:02 UTC

Severity: normal

Tags: notabug

Merged with 25832

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20874 in the body.
You can then email your comments to 20874 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#20874; Package coreutils. (Mon, 22 Jun 2015 15:25:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Tan <jurassicplayer75 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 22 Jun 2015 15:25:03 GMT) Full text and rfc822 format available.

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

From: Kevin Tan <jurassicplayer75 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Split -d skips to 9000 at 90
Date: Mon, 22 Jun 2015 02:20:25 -0700
[Message part 1 (text/plain, inline)]
Coreutils version: 8.23-3ubuntu1
Operating system: Ubuntu 15.04

Split with numeric suffixes adds extra digits in the suffix from 90+ and
begins counting again from the 9000s. All 90s after the first have no jumps.

Example:
    split -b 2048 -d testfile.bin splitfile.

With a large enough test file (721KB) the resultant files:
splitfile.00, splitfile01, splitfile.02
...
splitfile.89, splitfile.9000, splitfile.9001, splitfile.9002
...
splitfile.9262, etc.
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#20874; Package coreutils. (Mon, 22 Jun 2015 16:11:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Kevin Tan <jurassicplayer75 <at> gmail.com>, 20874 <at> debbugs.gnu.org
Subject: Re: bug#20874: Split -d skips to 9000 at 90
Date: Mon, 22 Jun 2015 17:10:28 +0100
tag 20874 notabug
close 20874
stop

On 22/06/15 10:20, Kevin Tan wrote:
> Coreutils version: 8.23-3ubuntu1
> Operating system: Ubuntu 15.04
> 
> Split with numeric suffixes adds extra digits in the suffix from 90+ and begins counting again from the 9000s. All 90s after the first have no jumps.
> 
> Example:
>     split -b 2048 -d testfile.bin splitfile.
> 
> With a large enough test file (721KB) the resultant files:
> splitfile.00, splitfile01, splitfile.02
> ...
> splitfile.89, splitfile.9000, splitfile.9001, splitfile.9002
> ...
> splitfile.9262, etc.
> 


It's done like that so there is no limit to the number of output files,
but also that those output files sort correctly with a lexical sort.
If you want consecutive numbers then specify enough digits wiht -a5 etc.

thanks,
Pádraig.




Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Mon, 22 Jun 2015 16:11:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 20874 <at> debbugs.gnu.org and Kevin Tan <jurassicplayer75 <at> gmail.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Mon, 22 Jun 2015 16:11:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Jul 2015 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 29 Oct 2018 02:45:02 GMT) Full text and rfc822 format available.

Forcibly Merged 20874 25832. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 29 Oct 2018 02:45:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 26 Nov 2018 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 155 days ago.

Previous Next


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