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 阅读(2179) 评论(0) 收藏 举报
浙公网安备 33010602011771号