• shell入门-wc


    命令:wc

    选项:-l  查看行数

            -w  以空白字符为分隔符 查看有多少单词

            -m  查看字符数,文件大小

    说明:统计指定文件中的字节数、字数、行数。

    -l

    [root@wangshaojun 111]# wc -l 1.txt 2.txt
    6 1.txt
    5 2.txt
    11 总用量

    -w


    [root@wangshaojun 111]# wc -w 3.txt
    6 3.txt
    [root@wangshaojun 111]# cat 3.txt
    aaa bbb ccc ddd eee fff

    -m

    [root@wangshaojun 111]# wc -m 4.txt  ////换行符占一个字符
    11 4.txt
    [root@wangshaojun 111]# cat 4.txt
    1234567890  

    ////////////////////////////////////////////////////////////

    总结:wc  -l  -m  -w  

  • 相关阅读:
    数据库设计——多表之间的关系
    约束
    DQL
    DML
    DDL
    Mysql——基础
    IT大牛关注链接
    deepin20安装Python3.85
    Python中的模块
    python中的装饰器
  • 原文地址:https://www.cnblogs.com/wangshaojun/p/4966720.html
Copyright © 2020-2023  润新知