码迷,mamicode.com
首页 > 其他好文 > 详细

显示特定航

时间:2015-09-02 17:21:34      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

head

-n, --lines=[-]K
              print the first K lines instead of the first 10; with  the  leading
              ‘-’, print all but the last K lines of each file
tail
-n, --lines=K
              output  the  last  K lines, instead of the last 10; or use -n +K to
              output lines starting with the Kth
 
hg log | sed -n "15,+20p"
 

语法:wc [选项] 文件…

说明:该命令统计给定文件中的字节数、字数、行数。如果没有给出文件名,则从标准输入读取。wc同时也给出所有指定文件的总统计数。字是由空格字符区分开的最大字符串。

该命令各选项含义如下:

  - c 统计字节数。

  - l 统计行数。

  - w 统计字数。

 

 

 

显示特定航

标签:

原文地址:http://www.cnblogs.com/air-of-code/p/4778923.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!