zhonghuasong

统计当前目录下文件数目

$ find . -type f | wc -l

统计文件行数

$ wc -l  filename

仅统计内容为pattern的行(只有pattern)

$ grep -w "pattern" -c filename

仅统计内容不为pattern的行

$ grep -w "pattern" -c -v filename

分类:

技术点:

相关文章:

  • 2022-03-13
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-11-23
  • 2021-11-11
  • 2022-01-08
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2021-11-23
  • 2021-11-23
  • 2021-11-23
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案