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.

Full log


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.




This bug report was last modified 6 years and 207 days ago.

Previous Next


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