coreutils
[Top][All Lists]
Advanced

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

Re: General usage and advice for split


From: Pádraig Brady
Subject: Re: General usage and advice for split
Date: Sat, 27 Oct 2018 05:23:08 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 24/10/18 20:08, t _ liang wrote:
> I split file like this:
>  split --line-bytes=10M test.txt
> but I also want to limit line.
>  so the cmd maybe like this:
>  split --line-bytes=10M --max-lines=100 test.txt

You might leverage the --filter functionality to combine modes like:

  split -C 10M in --filter 'split -l 100 - $FILE-'

cheers,
Pádraig



reply via email to

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