Solved

Linux, finding files that contain a string

Posted on 2014-03-26
1
475 Views
Last Modified: 2014-03-26
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
Comment
Question by:Anthony Lucia
1 Comment
 
LVL 19

Accepted Solution

by:
simon3270 earned 500 total points
ID: 39956432
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question