will `grep -r /` avoid /dev/urandom & co?
grep
will dive into infinite data sources such as /dev/urandom
or /dev/zero
by default. You can prevent this behavior by adding -I
. Description from the manual:
-I
Process a binary file as if it did not contain matching data; this is equivalent to the--binary-files=without-match
option.