AR# 14918

|

UNIX - How do I perform recursive grep? How do I search for text in files in a given directory and all of its subdirectories?

描述

General Description:

How do I perform recursive grep? How do I search for text in files in a given directory and all of its subdirectories?

解决方案

Use the following syntax:

find . | xargs grep 'text_to_find'

AR# 14918
日期 12/15/2012
状态 Active
Type 综合文章
People Also Viewed