【Linux】Shell

来源:互联网 发布:火影手游网络连接不上 编辑:程序博客网 时间:2024/06/05 22:40


# 输出文件的第3行内容


sed -n "3p" filename  

awk 'NR==3 {print $0}' testfile