码迷,mamicode.com
首页 > 系统相关 > 详细

Linux wc命令详解

时间:2017-04-01 22:13:48      阅读:235      评论:0      收藏:0      [点我收藏+]

标签:linux suse wc

今天的内容是linux的wc命令,这个名字很好记。技术分享你也知道?

这个命令很好记,他的功能有限。

wc -c filename:显示一个文件的字节数

wc -m filename:显示一个文件的字符数

wc -l filename:显示一个文件的行数

wc -L filename:显示一个文件中的最长行的长度

wc -w filename:显示一个文件的字数

 -c, --bytes

              print the byte counts


       -m, --chars

              print the character counts


       -l, --lines

              print the newline counts


       --files0-from=F

              read input from the files specified by NUL-terminated names in file F; If F is - then read names from standard input


       -L, --max-line-length

              print the length of the longest line


       -w, --words

              print the word counts


       --help display this help and exit


本文出自 “网络” 博客,转载请与作者联系!

Linux wc命令详解

标签:linux suse wc

原文地址:http://miaojiyin.blog.51cto.com/6361413/1912410

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