Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Software for text search in files

I have a python project with nested folder structure

src/
  folder_1
  folder_2
    subfolder_1
    subfolder_2
  folder_3
    subfolder_1
      subsubfolder_1
    subfolder_2
  etc.

I am looking for a piece of code and the project is too big to go through every file manually.

Is there a way to search for a string "mystring" inside all the files located in src or any subfolder of src?

share|improve this question

marked as duplicate by Oli Dec 21 '11 at 13:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Possible dublicate - Software for text search in files – Nitin Venkatesh Dec 21 '11 at 13:02
up vote 3 down vote accepted

grep -R src/*

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.