Frage

I did this for cscope to add Java capability

  find ./ -name *.java > cscope.files

Yet when I do this and suppose I want to look for a symbol , I get all references to this symbol in java only. I also want it to display the references in the C code which is present in this project. no it only shows java references to symbol i look. So now I have to delete this file cscope.files so I can look c references to this symbol. Hm , Any Help or anyone who has a idea. Regards Vaishali

War es hilfreich?

Lösung

Well it looks like you're only finding files with the .java extension for a start:

How about:

find . -iname '*.java' -or \\
       -iname '*.cpp' -or  \\
       -iname '*.c' -or    \\
       -iname '*.h' -or    \\
       > cscope.files
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top