How do you make grep print the output of it's search so far while it's still searching

1

1

When I run a grep search with a lot of results, it gives me a blank screen, and then spits the results all out at once when it's done. How to I make it print the results AS it finds them? Thanks!

Larry

Posted 2009-09-19T02:03:25.557

Reputation:

Answers

3

Assuming you're using GNU grep, try using the --line-buffered option.

James Sneeringer

Posted 2009-09-19T02:03:25.557

Reputation: 448