查询所有日志的某个字符串

 find .type f /mas/logs/smsproxy  -name "*.log" | xargs grep "error"

查询某个日志的字符串

grep -n  "error" smsproxy.2013-05-09.log

显示某几行日志

 sed -n '10490,10510p' smsproxy.2013-05-09.log

相关文章:

  • 2021-12-22
  • 2021-11-19
  • 2021-11-28
  • 2022-12-23
  • 2021-05-18
  • 2021-06-08
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案