coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: csplit patch to emulate --numeric-suffixes in split


From: Pádraig Brady
Subject: Re: csplit patch to emulate --numeric-suffixes in split
Date: Mon, 17 Aug 2020 15:17:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Thunderbird/80.0

On 17/08/2020 10:16, Roberto Reale wrote:
Hello,

I wrote a small patch in order for csplit(1) to start generating
output files at the given offset instead of counting from 0.

E.g.,

     csplit -o 1 -sz -n 2 ...

will generate files

     xx01
     xx02
     ...

Thank you for your time and attention,
Roberto Reale


I agree that this is useful enough to add.
Could you look at creating a test?
I'm thinking that --suffix-offset may be more descriptive.
I immediately start thinking of file offsets when splitting.
It's probably best just to have the --long-option,
and don't have an equivalent short option.

thanks!
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]