y

sed "258,265p" debug.logBak ^C
[root@offical logs]# ^C
[root@offical logs]# cat debug.logBak -n | grep 7d09b4fc^C
[root@offical logs]#

cat -n /test/logs/debug.log | grep 233c035f
49188 INFO 2019-10-25 09:15:15,078 process:2672 thread:139827213532744 log /test/common/middleware/log.py lineno:43 233c035f-d7e3-44f9-b1ac-8a66524943aa
cat -n /test/logs/debug.log | head -n 49190 | tail -n +49185

原文地址:https://www.cnblogs.com/rsapaper/p/11720680.html