Search This Blog

Wednesday, April 12, 2023

[Ubuntu] find command with grep

 find -name "*.java" -exec grep "foo" -Hn {} \;

 

-H Display filesname

-n Display line number

No comments: