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



Reply via email to