GNU bug report logs - #27129
split adding zeroes to suffix

Previous Next

Package: coreutils;

Reported by: thomas kaeding <thomas.a.kaeding <at> gmail.com>

Date: Mon, 29 May 2017 16:00:04 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: thomas kaeding <thomas.a.kaeding <at> gmail.com>, 27129 <at> debbugs.gnu.org
Subject: bug#27129: split adding zeroes to suffix
Date: Mon, 29 May 2017 12:34:25 -0700
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




This bug report was last modified 7 years and 355 days ago.

Previous Next


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