Timeline for Linux: Compare Directory Structure Without Comparing Files
Current License: CC BY-SA 2.5
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 25, 2018 at 23:12 | comment | added | Slartibartfast | I understand and respect that reading of the problem statement. That was not my reading at the time. Are you recommending I edit my answer to respond to the updated question? I'm okay doing that if you think it will be helpful to some people, and I'm okay leaving the solution and comment set the way they are now, which seems to be reasonably effective. | |
May 24, 2018 at 15:40 | comment | added | user2746401 | As pointed out (years ago) by intuited, to answer the OPs question, the -type d should be removed so that files are considered in the comparison as well as directories | |
Sep 21, 2016 at 14:46 | comment | added | Chris Jefferson |
This is no good for me, because if one directory contains a folder with a few thousand files in they are all listed individually, while diff -rq just shows the root directory exists in one, and carries on.
|
|
Jul 23, 2010 at 19:05 | vote | accept | Jonah | ||
Jul 22, 2010 at 8:36 | history | edited | Benjamin Bannier | CC BY-SA 2.5 |
Output to file1 instead of piping as suggested by Dan
|
Jul 22, 2010 at 2:59 | history | answered | Slartibartfast | CC BY-SA 2.5 |