[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43684: Problem with numerical splitting with files > 90*l
From: |
Pádraig Brady |
Subject: |
bug#43684: Problem with numerical splitting with files > 90*l |
Date: |
Tue, 29 Sep 2020 10:37:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Thunderbird/81.0 |
tag 43684 notabug
close 43684
stop
On 29/09/2020 02:18, ned haughton wrote:
When splitting with -d, the numbering screws up after 89:
It behaves like that on purpose so that there is no limit on the
number of file names to split, and so that normal globbing will
result in the correct order
(so that `cat lat_lon_* > lat_lon_full` works as expected)
with --suffix-length=2 the numbering works correctly, and quits after 99.
Well if there is more data than can be accommodated in 100 files it will error
like:
$ truncate -s 101 file
$ split -b1 -d --suffix-length=2 file
split: output file suffixes exhausted
You can specify a larger --suffix-length to have both more
natural looking numbers, and correct globbing order.
thanks,
Pádraig