【问题标题】:How do I use adb command to save top results?如何使用 adb 命令来保存排名靠前的结果?
【发布时间】:2013-03-27 22:33:22
【问题描述】:

我想将 "top | grep applicationX" 的结果保存到 windows 中的文件中。我可以使用 adb shell top > C:\top_result.txt 保存排名靠前的结果,但我需要使用 grep。所以,我在做:

adb 外壳 顶部 | grep 应用X

我在终端中获得了我想要的信息,但我想将它保存到一个文件中。谢谢!

【问题讨论】:

标签: android grep adb


【解决方案1】:

adb shell top | grep applicationX > C:\top_result.txt

【讨论】:

    【解决方案2】:

    你可以像这样操作输出:

    adb shell top | grep applicationX > /dir/somefile

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-30
      • 1970-01-01
      • 1970-01-01
      • 2019-05-11
      • 1970-01-01
      • 2011-12-29
      • 2016-08-01
      • 2019-08-28
      相关资源
      最近更新 更多