android logcat grep和输出失败

时间:2021-12-30 03:48:14

I want to save the grep logcat to file on windows8.

我想把grep logcat保存到windows8上。

adb logcat | grep AAA > D:1.txt

it does not work

它不工作

and

adb logcat | grep --line-buffered AAA > D:1.txt 

it does not work too. It said

它也不起作用。它说

grep:unrecognized option '--line-buffered' Usage:grep --help for more infomation

grep:不可识别的选项”——行缓冲的“用法:grep——帮助更多信息

But adb logcat | grep MyApp , it works well And adb logcat -v time >D:1.txt it works well too

但是adb logcat | grep MyApp,它运行良好,adb logcat -v时间>D:1。它也很有效

1 个解决方案

#1


0  

You can't create file name with ":" in windows so please change your destination file name like also make sure windows have grep installed

您不能在windows中创建带有“:”的文件名,因此请更改您的目标文件名,就像确保windows安装了grep一样

adb logcat | grep AAA > D1.txt 

#1


0  

You can't create file name with ":" in windows so please change your destination file name like also make sure windows have grep installed

您不能在windows中创建带有“:”的文件名,因此请更改您的目标文件名,就像确保windows安装了grep一样

adb logcat | grep AAA > D1.txt