首页 > 其他 > 详细

显示特定航

时间:2015-09-02 17:20:48      阅读:179      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!