LeetCode 195. Tenth Line (shell)
来源:互联网 发布:小米手机数据迁移应用 编辑:程序博客网 时间:2024/06/06 01:49
描述
打印文件的第十行内容
解决
迭代
# Read from the file file.txt and output the tenth line to stdoutcount=1cat file.txt | while read linedo if [ $count -eq 10 ] then echo "$line" break else count=$[ $count + 1 ] fidone
0 0
- leetcode-shell-195. Tenth Line
- LeetCode 195. Tenth Line (shell)
- 【Leetcode Shell】Tenth Line
- 【leetcode~Shell】:Tenth Line
- 【leetcode~Shell】:Tenth Line
- leetcode:Tenth Line 【shell】
- 【leetcode-shell】Tenth Line
- Leetcode 195. Tenth Line
- [Leetcode] 195. Tenth Line
- 195. Tenth Line leetcode bash
- leetcode-195 Tenth Line
- LeetCode 195 Tenth Line
- Leetcode: Tenth Line
- 195. Tenth Line
- 195. Tenth Line
- 195. Tenth Line#1
- 195. Tenth Line
- 195. Tenth Line。
- 【NOIP2012】Day1T3 开车旅行
- ios中生产者模式实例:非激励广告架构的优化过程
- 单例模式Singleton 你是唯一
- VOT 2015 Benchmark 使用教程
- poj 1177(线段树扫描线)
- LeetCode 195. Tenth Line (shell)
- sublime text相关插件配置
- 杨辉三角形
- 【c++/数据结构】红黑树-RBTree
- C# WinForm控件、自定义控件整理(大全) (2013-01-31 00:16:31)
- transfer error: Invalid argument
- hibernate.hbm2ddl.auto配置详解
- CSS知识点总结
- jquery bootstrap下拉列表设置最大高度