Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    ENDLESS FRUSTRATION! "Find Files Containing Text WITHIN" does it exist?

    I've lost my mind playing with find / locate / grep and I can't do it! I need help.

    I want to find all files/aps/php what ever, anything that isn't a folder that contains the line 'lina' anywhere within the file/db/php. I want to search in a certain http folder, so that narrows it down.

    Can anyone help me?
    THANK YOU!!!

  2. #2
    Just Joined!
    Join Date
    Oct 2005
    North Carolina, USA
    cd /directory_tree_you_want_to_search
    find . -type f -exec grep -l "string to find" {} \; -print

  3. #3
    grep -Hr "string to find" <directory tree you want to search>

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts