linux 复制文件前n行到另外一个文件

head -n 100 train.txt > 123.txt

head -100 train.txt > 123.txt

原文地址:https://www.cnblogs.com/qiezi-online/p/14092841.html