tail -5 ./nowcoder.txt #最后5行

head -5 ./nowcoder.txt #前5行

NR=cat ./nowcoder.txt|wc -l #统计文件一共多少行信息

for ((a=3;a<=NR;a++));doawkn"NR==NR;a++)); do awk -n "NR==a" nowcoder.txt; done #循环输出第3行到最后一行内容