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
标签:macOS,logcat,关键字,过滤,adb,grep From: https://www.cnblogs.com/shenxiaolin/p/17478612.html