grep '19/May/2020' error.log,在error.log文件中查找含有“19/May/2020”字段的行;

grep -c '19/May/2020' error.log,在error.log文件中查找含有“19/May/2020”字段的行数;

grep '19/May/2020' error.log | grep -c 'HTTP/1.1',在error.log文件中查找“19/May/2020”的行,然后在查找出的内容中查找含有“HTTP/1.1”的行数,这个属于多层嵌套。

 

暂时只用到这些功能~~~

相关文章:

  • 2022-12-23
  • 2022-02-03
  • 2021-06-22
  • 2022-12-23
猜你喜欢
  • 2021-08-04
  • 2021-07-05
  • 2021-05-08
  • 2022-12-23
  • 2021-04-04
  • 2021-11-20
  • 2021-11-20
相关资源
相似解决方案