linux 按行分割文件时间:2023-03-08 17:03:38 $ sudo awk 'NR%2==1{close(p".txt");++p}{print > p".txt"}' test.txt $ sudo split -d -l 2 test.txt new