How to detect first instance in Android logs?

Natey2

Senior Member
Joined
Oct 23, 2010
Messages
1,308
Reaction score
5
I would like to detect the first occurrence of the substring "Low Memory" in my Android (logcat) logs.
How would I do that on my Android device?

In a normal Linux system, I could do something like:
$ tail -f logfilename | grep 'Low Memory' > occurrences.txt

Sent from my unrooted DroidX using Tapatalk
 
Top