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