After my phone is connected to the computer through adb, going to adb shell and then typing grep
gives me
grep: not found
Is this a problem with my adb installation or my phone? How do I get grep to work for my device?
PS: This is the reason why I think it might a problem with my phone (as opposed to the adb installation)
https://stackoverflow.com/a/12143669/1693203
The answer says
The grep utility may not be installed on your device.
However, I may have misunderstood the statement. How do I get grep working?
in your case that means:The grep utility
mayis not be installed on your device.install busybox from playstore then perform
grep
command is not installed on your device by default. If you need to usegrep
command in your device, you can cross-compilebusybox
then invokegrep
underbusybox
.However if you are in
Linux
orCygwin
, you can pipe the command output and use thegrep
in PC to get result you want, e.g.