|
Search:
Advanced search
|
Browse by category:
|
Glossary |
Tutorial - how to use recursive grep and find to write output to a file in linux. |
||||
To out put a recursive grep results to a file I use the following command:
#find . -exec grep -l "Phrase you're looking for" {} \; 2> /dev/null | tee -a /file/you/want/to/write.to replace : Phrase you're looking for with your phrase replace: /file/you/want/to/write.to with the output file to log the recursive search through grep. |
||||
Powered by
KnowledgebasePublisher (Knowledgebase software)

