Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
    
Possible dublicate - Software for text search in files –  nitstorm Dec 21 '11 at 13:02
add comment

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.

1 Answer

up vote 3 down vote accepted

grep -R src/*

share|improve this answer
add comment

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