DEV Community

ChheangRatha
ChheangRatha

Posted on

linux find

  • Find contents of all source
    find . -type f -exec grep -l "keywords" {} \;

  • Find specific extension file
    find . -type f ( -name ".java" -o -name ".jsp" ) -exec grep -RIHn '^\s*.System.out.println' {} \;
    find . -name '.js' -exec grep -RIHn '^\s.console.log' {} \;

Top comments (0)