使用 Shell 拆分文件并且加上后缀。

split -l 100000 test.txt -d -a 2 test_&&ls|grep test_|xargs -n1 -i{} mv {} {}.txt