LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Searching a specific directory for files containing a text string (https://www.linuxquestions.org/questions/linux-newbie-8/searching-a-specific-directory-for-files-containing-a-text-string-845524/)

lothwen 11-20-2010 10:54 AM

Searching a specific directory for files containing a text string
 
This is for a homework assignment.

The problem is, I am a member of a group which has written a program whose source code is being held in a specific directory (~cs252/Assignments/basicAsst/project) and we want to go through and change the parameters for the function "sequentialInsert." My job is to find all occurances of the function call to "sequentialInsert" and to also list the files from where the code came from. Also, I have to be in the commandsAsst directory when I do this.

I have tried grep and find combined together, and I am at a lost. Please please help

H_TeXMeX_H 11-20-2010 10:58 AM

Post what commands you tried. Try using 'grep -r' for recursive find in files.


All times are GMT -5. The time now is 01:50 PM.