Linux wc 命令,查看行数,字节数

来源:互联网 发布:java源码 编辑:程序博客网 时间:2024/04/29 17:33

wc  命令


查看行数,字节数

例如:

wc all.3.info

  171   521 10762 all.3.info


man wc



NAME
       wc - print the number of newlines, words, and bytes in files


SYNOPSIS
       wc [OPTION]... [FILE]...


DESCRIPTION
       Print  newline,  word,  and byte counts for each FILE, and a total line if more
       than one FILE is specified.  With no FILE, or when FILE  is  -,  read  standard
       input.


       -c, --bytes
              print the byte counts


       -m, --chars
              print the character counts


       -l, --lines
              print the newline counts
:
0 0
原创粉丝点击