Search all files containing text

Posted by enthdegree on Super User See other posts from Super User or by enthdegree
Published on 2012-04-13T05:13:03Z Indexed on 2012/04/13 5:34 UTC
Read the original article Hit count: 517

Filed under:
|
|
|
|

With Busybox, how do you search for an expression within a bunch of files recursively through a bunch of directories, but only look through text files?

We don't know what the file's suffix is going to be; it could be .sh, it could be nothing, it could be something else. I was considering somehow basing the search on encoding although I am not quite sure what the encoding would be either.

I've tried busybox grep -r but it searches through binary files too, which wastes a lot of time.

© Super User or respective owner

Related posts about linux

Related posts about find