GNU bug report logs - #28228
split issue?

Previous Next

Package: coreutils;

Reported by: Xikai Jiang <xikai <at> uchicago.edu>

Date: Thu, 24 Aug 2017 21:27:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.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 28228 in the body.
You can then email your comments to 28228 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#28228; Package coreutils. (Thu, 24 Aug 2017 21:27:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xikai Jiang <xikai <at> uchicago.edu>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 24 Aug 2017 21:27:01 GMT) Full text and rfc822 format available.

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

From: Xikai Jiang <xikai <at> uchicago.edu>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: split issue?
Date: Thu, 24 Aug 2017 20:02:07 +0000
[Message part 1 (text/plain, inline)]
Dear GNU developers:

When I use 'split -d -l 3 my.file' to split a file, there seems to be a discontinuity in the numeric suffixes of the resulting files (x89 to x9000, see the attached image.)

Could you help on this issue?

Thanks in advance for your time.

Regards,
Xikai
[split_results.png (image/png, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#28228; Package coreutils. (Thu, 24 Aug 2017 22:00:02 GMT) Full text and rfc822 format available.

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

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Xikai Jiang <xikai <at> uchicago.edu>, 28228 <at> debbugs.gnu.org
Subject: Re: bug#28228: split issue?
Date: Thu, 24 Aug 2017 15:59:43 -0600
tag 28228 notabug
close 28228
thanks

Hello,

On 24/08/17 02:02 PM, Xikai Jiang wrote:
> When I use 'split -d -l 3 my.file' to split a file, there seems to be a discontinuity in the numeric suffixes of the resulting files (x89 to x9000, see the attached image.)
> 
> Could you help on this issue?

behavior is by design.
Please read about it here:
  https://www.pixelbeat.org/docs/coreutils-gotchas.html#split

The reasoning is:
"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 with -a5 etc."
(from: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20874).

As such I'm closing this bug report, but discussion can continue
by replying to this thread.

regards,
 - assaf




Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 24 Aug 2017 22:00:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 28228 <at> debbugs.gnu.org and Xikai Jiang <xikai <at> uchicago.edu> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 24 Aug 2017 22:00:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#28228; Package coreutils. (Fri, 25 Aug 2017 15:31:02 GMT) Full text and rfc822 format available.

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

From: Xikai Jiang <xikai <at> uchicago.edu>
To: Assaf Gordon <assafgordon <at> gmail.com>, "28228 <at> debbugs.gnu.org"
 <28228 <at> debbugs.gnu.org>
Subject: RE: bug#28228: split issue?
Date: Fri, 25 Aug 2017 15:23:26 +0000
Hi Assaf:

Ok, I see. I'll use -a5 for large number of splitted files then.

Thanks for your explanations.

Regards, Xikai

________________________________________
From: Assaf Gordon [assafgordon <at> gmail.com]
Sent: Thursday, August 24, 2017 4:59 PM
To: Xikai Jiang; 28228 <at> debbugs.gnu.org
Subject: Re: bug#28228: split issue?

tag 28228 notabug
close 28228
thanks

Hello,

On 24/08/17 02:02 PM, Xikai Jiang wrote:
> When I use 'split -d -l 3 my.file' to split a file, there seems to be a discontinuity in the numeric suffixes of the resulting files (x89 to x9000, see the attached image.)
>
> Could you help on this issue?

behavior is by design.
Please read about it here:
  https://www.pixelbeat.org/docs/coreutils-gotchas.html#split

The reasoning is:
"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 with -a5 etc."
(from: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20874).

As such I'm closing this bug report, but discussion can continue
by replying to this thread.

regards,
 - assaf




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

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

Previous Next


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