Im getting stuck because it is including some lines it should not 4. You are par
ID: 3727285 • Letter: I
Question
Im getting stuck because it is including some lines it should not4. You are part of a team working on a large Ct+ program. The source code for this program is kept in the directory -es252/Assignmenta/commandsAsst/project. After a certain amount of debate, the team has decided to change the order of the parameters of the function binarysearch. Someone else is actually changing the definition of that function. Your job is to find all the places where that function is called and to make repairs as n What command would you give to list all calls to that function? You should show the lines of code containing each call and the name of the file from in which each such line occurs. (It's OK to produce a few incidental uses of the function name as well, because you will be inspecting the output before actually making the changes.) such line occurs. (Its problem, but suppose that all you wanted was a list of the source code file names in which the function was mentioned?
Explanation / Answer
Currently you are looking for the text binarySearch in the grep command.
For problem 4 where you are explicitly looking for function calls , you can use
a string like "binarySearch(" with grep command. The bracket will make sure that the line will have a call.
For problem 5 , you need files where the function is mentioned (is it like function is decalared or just called or mentioned as a text ). So in this case the string "binarySearch" should be sufficient to find the source code files. For recursive searching to subdirectories , -r option
can be used.