Compare two folders which has many files inside contents

后端 未结 5 1348
时光说笑
时光说笑 2020-12-07 09:58

Have two folders with approx. 150 java property files.

In a shell script, how to compare both folders to see if there is any new property file in either of them and

5条回答
  •  情话喂你
    2020-12-07 10:19

    To get summary of new/missing files, and which files differ:

    diff -arq folder1 folder2
    

    a treats all files as text, r recursively searched subdirectories, q reports 'briefly', only when files differ

提交回复
热议问题