awk 'NR>19 && NR<31' test.txt 取20到30行内容 NR代表行号 awk 'NR==30' test.txt 转载于:https://www.cnblogs.com/zhutao-niuniu2014/p/10864786.html