perl删除文件前几列 perl oneline 快速删除文件的前两列代码如下 test.txt文件内容1 2 3 4 5 6 perl -lane 'print join(" ",@F[2..$#F])' test.txt 输出效果 3 4 5 6