macOS系统adb logcat grep 过滤多个关键字

macOS系统adb logcat grep 过滤多个关键字:

 

1、过滤单个关键字:

adb logcat | grep  "error"

 

2、过滤多个关键字:

adb logcat | grep -e "error" -e "warning" -e "fatal"

 

把日志保存到本地:

adb logcat | grep -e "error" -e "warning" -e "fatal"  >/Users/Downloads/logcat3.txt

 

posted on 2023-06-13 19:55  CuriousZero  阅读(1284)  评论(0编辑  收藏  举报

导航