GNU bug report logs -
#28228
split issue?
Previous Next
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.
Full log
Message #12 received at control <at> debbugs.gnu.org (full text, mbox):
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
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.