Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I guess instead of using diff -rq you could perform a find . -type f ... in B, and then compare those files against the same files in A. Commented Mar 15, 2024 at 19:56
  • 1
    I thought that "new files" are related somehow to date (files that were created after certain time). If you just want to ignore files from A that aren't in B (as the accepted answer does), why not just run grep -v "Only in A:" on your diff -rq A B command? Commented Mar 17, 2024 at 9:07