Find Command that returns line number of the string

前端 未结 2 1638
春和景丽
春和景丽 2021-01-04 18:40

I have a bunch of files organized into directories..All these are text files (c/c++). I am trying to understand this code and i need to look at the declarations of many vari

2条回答
  •  别那么骄傲
    2021-01-04 19:36

    You can do this with grep. grep -n 'search-term' *.c will give you the filename and line number where the term appears.

提交回复
热议问题