Timeline for Find the files existing in one directory but not in the other
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 11:47 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Sep 28, 2016 at 13:14 | comment | added | Alexander Amelkin |
I believe this method is simpler (still using find hence a comment and not a separate answer): cd dir2; find . -exec [ -e ../dir1/{} ] \; -o -print 2>/dev/null This will print files present in dir2 but not present in dir1.
|
|
Jun 20, 2016 at 8:29 | history | answered | jaltek | CC BY-SA 3.0 |