Quick operation of log files under liunx

1. Intercept part of the log and save it in a new file 
sed -n ' / 2020-04-21 14: 00: 00 /, / 2020-04-21 18: 00: 00 / p ' debug.log> meAccess.log

 

Guess you like

Origin www.cnblogs.com/han-guang-xue/p/12746390.html