find text within files:linux command

Posted on 2011-10-31
Last Modified: 2012-05-12

I'm wondering what is the linux command for me to find files (recursively) with the the text ' - comming soon' (not including the quotes).

Thank you,
Question by:Victor Kimura
    LVL 21

    Accepted Solution

    Use grep to find strings in files.

    You can use -R with grep to search all files in a directory recursively.
    grep -R ' - comming soon' /path/to/search

    Open in new window

    LVL 11

    Assisted Solution

    Use grep recursively
    You can search recursively i.e. read all files under each directory for a string ""
    $ grep -r "" /etc/

    Author Closing Comment

    by:Victor Kimura
    thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now