【Linux】Shell - 脚本练习 - 获取文件某行的内容 # 输出文件的第3行内容sed -n "3p" filename awk 'NR==3 {print $0}' testfile 【Linux】Shell 2023-12-14 177 点赞 2 评论 268 浏览