I have a rather large directory, and I like to search the files for occurrence of specific strings. I have a list of about 30 strings, and my directory is 1.3G. I tried adding all the strings to a file called
Then I used
grep -r -f strings . > grepresults
But it takes a loooooong time. And I would not complain except I took a peek into the
grepresults file, and the content does not seem to match any of my strings. I am doing something wrong. What should I do to see the result of my command immediately, and verify that it is what I want. Then I have no issue letting it run. Please let me know, and I'll post a sample of what it sends currently.
grep -rFf foo -o and seems to get a whole bunch of irrelevant content. I do not know how to use stdout. Could you provide more detailed instructions please?