题解 | #输出第5行的内容#

输出第5行的内容

https://www.nowcoder.com/practice/1d5978c6136d4252904757b4fa0c9296

#!/bin/bash

head -n 5 nowcoder.txt | tail -n 1

使用 head 命令筛选出前 5 行的内容,然后使用 tail 命令找到第 5 行的内容

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务