log日志查询

1:按时间段查询grep '2019-06-10 10:3[2-9]' xxxx.log;
2:按关键字查询 cat  xxxx.log |grep -C 10 '任务任务任务' --color
3:按关键字查询less xxxx.log 回车然后?关键字(?是从前往后/是从后往前)
4:查询某段时间内的关键字sed -n '/2019-10-14 17:10:34/,/2019-10-14 17:35:00/p' xxxx.log |grep '4000006060001190000010336'--color

定位文件位置:
locate initial_notification_template.xls

猜你喜欢

转载自www.cnblogs.com/sunny-miss/p/12455638.html
今日推荐