第十行-leetcode

第十行


shell 编程题目

1. 地址

https://leetcode-cn.com/problems/tenth-line/comments/

2. 解法

最简洁的做法:

awk 'NR==10' file.txt # NR 代表是行数
或者:
sed -n 10p file.txt
posted @ 2020-06-20 20:50  吴丹阳-V  阅读(134)  评论(0编辑  收藏  举报