difference in files in two directories ignoring date/time (and subdirectories)
Basically, I want to compare the contents of (mainly binary) files in 2 directories. And if files are missing/extra.
I want to ignore timestamps and directories and don't want to do this recursively. Been googling for a while but can't find a solution;( |
The utility diff does it as a matter of course. It is so simple that there will not be any guides, tutorials, or howtos to find on the net.
Code:
diff ./A/ ./B/ |
Quote:
|
No problem.
Quote:
Quote:
|
From man diff on CentOS 7:
Quote:
|
Sorry to be negative about info pages, but I gave up wasting time on them years ago. Nearly all of them are just placeholders and then those very few that aren't placeholders are split up into many uselessly small pages strung together with an exceedingly poor navigation system. If info pages were plain HTML 2.0 and navigable in any text-based browser, I'd be all over them, but as it stands, I don't see a future for info pages. As far as I can tell they exist only to drag down the quality and quantity of GNU/Linux documentation and make FreeBSD look good by comparison.
However, either way, it is something to bring up with the diff maintainers for CentOS in this context. |
Quote:
That it did what it does with directories was new information to me, for which I thank you. Very cool! |
All times are GMT -5. The time now is 04:23 AM. |