I don't know if this is a duplicate questions or not, but I haven't been able to find it...
I'm an old-school UNIX/Linux/AIX programmer, so I'm used to the terminal command line, even on MacOS X.
I've been using the following command to locate the given text in all files under the current folder:
find . -type f 2>/dev/null -exec grep [text] {} \; -ls
where [text] is the text string that I'm searching for. I have two issues, one minor and one major:
Minor - this command displays the text before the path to the file that contains the text string
Major - this command is both CPU (minor) and memory (major) intensive, grabbing almost all available memory while it's running on folders containing large numbers of files.
What I would like to find is a solution that resolves both of these issues, but the resource issue is the more annoying one.
Thanks in advance for any help....
BTW, I checked How do I find all files containing specific text on Linux?, and it doesn't resolve the resource/time issue.