Hi All,
So I am running the following command to find all the files within a folder that contain either instance of a string:
Code:
egrep -lr "headerX|footerX" * >> ~/031909.txt
When I run the command without trying to push the results to an output file I start seeing matches after about a minute or so.
When trying to push the results to an output file (like the example above), there is nothing stored in the file after I let it continue running past the point where I first started seeing matches when testing just the base command (I did a more on the file in a new session while the command was still running. tail -f doesn't show anything as well).
I'm wondering if results are stored to the text file only after the command finishes? The command is going to take a while to run regardless. Just wanted to make sure this is the case, so I don't wait around for an hour to only get a blank file.
Thanks for any explanation or guidance, I appreciate it.