在文本操作中,grep/sed/awk被称为文本操作三剑客。可以对文本进行搜索、剪切、拼接等各种操作。

    还有一些其他的文本操作,支持文本统计、排序、连接等。

    • unique
    • wc

      1. wc -l file
      2. wc -w file
      3. wc -c file
    • sort

    • cut
    • xargs:命令行参数
    • paste
    • join