LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   grep ASCII files only (https://www.linuxquestions.org/questions/linux-general-1/grep-ascii-files-only-445060/)

zchoyt 05-15-2006 01:39 PM

grep ASCII files only
 
I am using grep to search recursively through a large tree. It returns more binary files which I don't care about. I looked at the man page, but it wasn't obvious how to specify ascii files only, or to exclude bins. Here is what I am using. The ascii files are not limited to *.txt however. I am searching through Visual Studio .net project heirarchies. Here is what I am using:

grep -Rn string *

There must be something like

grep -Rn -? type=ASCII string *


Thx, Zakk

Dark_Helmet 05-15-2006 02:16 PM

Have you tried:
Code:

grep -IRn string *

muha 05-16-2006 03:55 AM

(post deleted)


All times are GMT -5. The time now is 12:06 AM.