Ah. / (recursive shouldn’t require a wildcard glob?) and it finished without match … Retrying with /* …
and that is interesting but probably a complete waste of time. I see a blinking screen:
SNIP…
apping found
grep: /boot: Permission denied
grep: /config/sdcardfs: Permission denied
grep: /d/mmc1/mmc1:0001/status: Permission denied
grep: /d/mmc1/mmc1:0001/state: Permission denied
grep: /d/mmc1/clock: Permission denied
grep: /d/mmc1/ios: Permission denied
grep: /d/sys_timer/debug: Permission denied
grep: /d/mmc0/mmc0:0001/ext_csd: Permission denied
grep: /d/mmc0/mmc0:0001/status: Permission denied
grep: /d/mmc0/mmc0:0001/state: Permission denied
grep: /d/mmc0/clock: Permission denied
grep: /d/mmc0/ios: Permission denied
grep: /d/keypad/debug: Permission denied
CTRL-C
reset
[defaultuser@VollaPhone ~]$
Hmmm. Why are we doing this?
As for memory constraints on grep, I’ve encountered it while searching through very large, encrypted blobs (proprietary wrapers around XFS filesystems) … but those were 100GB+ range. And it depends on the length/size of a line, if I remember correctly. This is, however more than 10 years ago, so I don’t have any more details.
EDIT. Just looked it up. On Linux, there should be no distinction between text and binary. By default GNU grep is in binary mode, but not binary AS text mode. That suggests that a binary with a very long no null bytes sequence could run out of memory. unless mmap is used which, I believe, is not the case?