System.out.println removal/comment from multiple java source files

后端 未结 7 1886
失恋的感觉
失恋的感觉 2021-01-13 11:08

I want to remove/comment all the occurrences of System.out.println from my java code. This System.out.println may be inside if ,

7条回答
  •  盖世英雄少女心
    2021-01-13 11:56

    In case you do not use IDE, on Linux:

    sed '/System.out.println/d' %YOUR_PROJ_DIR%/*.java
    

    on Windows you can do the same if you have a cygwin installed.

提交回复
热议问题