bug-coreutils
[Top][All Lists]
Advanced

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

bug#27129: split adding zeroes to suffix


From: Pádraig Brady
Subject: bug#27129: split adding zeroes to suffix
Date: Mon, 29 May 2017 12:34:25 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

tag 27129 notabug
close 27129
stop

On 29/05/17 02:18, thomas kaeding wrote:
> This has happened twice to me, for two different files,
> with the same size. This file is called "20170528".
> 
> -rw-r--r-- 1 kaeding kaeding 4700176384 May 28 16:00 20170528
> 
> split -b 47100000 -d 20170528 20170528.
> 
> gives these files:
> 
> -rw-r--r-- 1 kaeding kaeding 47100000 May 28 16:16 20170528.00
> ...
> -rw-r--r-- 1 kaeding kaeding 47100000 May 28 16:18 20170528.89
> -rw-r--r-- 1 kaeding kaeding 47100000 May 28 16:18 20170528.9000
> ...

> As you can see, the last 10 have extra zeroes in the suffix.
> 
> I have coreutils 8.22.

That's done so the files sort easily for subsequent concatenation,
as detailed at: http://www.pixelbeat.org/docs/coreutils-gotchas.html#split
Use -a4 etc. to have a consistent numbering

thanks,
Pádraig





reply via email to

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