快速找日志

 1 cat ./debug/libvirt-4.5.0/src/qemu/qemu_monitor.c| nl -ba | grep "qemu unexpectedly" 
2
for e in $(find . -type f );do if [ "$(cat $e | grep "qemu unexpectedly")" != "" ];then echo "find $e"; else echo "pass $e"; fi; done | grep find

 

posted @ 2022-09-22 13:35  maojun1998  阅读(24)  评论(0编辑  收藏  举报