要求:查询2020-07-21 11:58:00~ 12:05:50 这个时间段的日志

命令一:

grep  -E '2020-07-21 11:5[8-9]:[0-5][0-9]|2020-07-21 12:0[0-5]:[0-5]0' out.log

命令二:

sed -n '/2020-07-21 11:58:00/,/2020-07-21 12:05:50/p' out.log 

sed  -n  '/开始时间/,/结束时间/p' out.log

相关文章:

  • 2021-12-01
  • 2022-02-07
  • 2021-12-25
  • 2022-01-06
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
相关资源
相似解决方案