Files & Transfer Android 5.0+ Risk: READ_ONLY

Search for Pattern in File (grep)

Searches regular expressions or text strings inside device files.

Command Syntax

adb shell grep "AndroidRuntime" /data/local/tmp/log.txt
Generic Syntax: grep <PATTERN> <file>

Real-World Usage Examples

Execute command
Searches regular expressions or text strings inside device files.
adb shell grep "AndroidRuntime" /data/local/tmp/log.txt