UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

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 Created 08/29/2007
Last Updated 12/15/2012
Status Active
Type General Article