bug-coreutils
[Top][All Lists]
Advanced

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

bug#20874: Split -d skips to 9000 at 90


From: Pádraig Brady
Subject: bug#20874: Split -d skips to 9000 at 90
Date: Mon, 22 Jun 2015 17:10:28 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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.





reply via email to

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