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?

Description

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?

Solution

Use the following syntax:

find . | xargs grep 'text_to_find'

AR# 14918
Date 12/15/2012
Status Active
Type General Article
People Also Viewed