• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 486
  • Last Modified:

Linux, finding files that contain a string

For linux, RHEL dist

From a directory structure like the following

    /first/second/third

I want to go to /first

and then find all files that contain the word 'TEST.TEST'

What command would I use to do this.  Could someone please post an example?
0
Anthony Lucia
Asked:
Anthony Lucia
1 Solution
 
simon3270Commented:
Finished you Computer Security class?  :-)

The standard UNIX/Linux command for retrieving files in a directory tree is "find".  The man page will show its use.  It can run commands on the files it finds, so your usual text search command should be fine.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now