195. Tenth Line leetcode bash
来源:互联网 发布:cf手机版刷枪软件下载 编辑:程序博客网 时间:2024/06/06 01:33
How would you print just the 10th line of a file?
For example, assume that file.txt
has the following content:
Line 1Line 2Line 3Line 4Line 5Line 6Line 7Line 8Line 9Line 10Your script should output the tenth line, which is:
Line 10
[show hint]
Have you met this question in a real interview?
Yes
No
Discuss
# Read from the file file.txt and output the tenth line to stdout.sed -n 10p file.txt
0 0
- 195. Tenth Line leetcode bash
- Leetcode 195. Tenth Line
- [Leetcode] 195. Tenth Line
- leetcode-shell-195. Tenth Line
- LeetCode 195. Tenth Line (shell)
- leetcode-195 Tenth Line
- LeetCode 195 Tenth Line
- 【Leetcode Shell】Tenth Line
- Leetcode: Tenth Line
- 【leetcode~Shell】:Tenth Line
- 【leetcode~Shell】:Tenth Line
- leetcode:Tenth Line 【shell】
- 【leetcode-shell】Tenth Line
- 195. Tenth Line
- 195. Tenth Line
- 195. Tenth Line#1
- 195. Tenth Line
- 195. Tenth Line。
- 博客编辑器
- JVM的内存结构
- HorizontalScrollView嵌套GridView实现横向滑动
- 创建UITableViewCell
- mysqldump常用参数
- 195. Tenth Line leetcode bash
- GreenDao的简单使用说明(四)特殊的单表1:n
- iOS 静态度制作方法详细
- 华为oj:称砝码
- extjs-数组操作
- C#Transfrom
- css3来回摆动
- this与super
- Linux 编译安装 GCC 4.9