Compare two folders which has many files inside contents

后端 未结 5 1352
时光说笑
时光说笑 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

    diff -r will do this, telling you both if any files have been added or deleted, and what's changed in the files that have been modified.

提交回复
热议问题