How do you diff a directory for only files of a specific type?

前端 未结 9 1706
囚心锁ツ
囚心锁ツ 2021-01-31 13:15

I have a question about the diff command if I want a recursive directory diff but only for a specific file type, how to do that?

I tried using the exclude option but can

9条回答
  •  无人共我
    2021-01-31 13:53

    The lack of a complementary --include makes it necessary to use such convoluted heuristic patterns as

    *.[A-Zb-ik-uw-z]*
    

    to find (mostly) java files!

提交回复
热议问题