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?

描述

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 综合文章
的页面