方法1 perl -ne "print if $. % 10 == 1" filename 方法2 awk '{ if (NR % 10 ==1) {print NR, " => ", $0 } }' filename方法3awk 'NR%10==1' filename方法4sed -n '1~11p' filename