bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-diffutils] bug#20794: ignore subdirectory with diff


From: 杨秉武
Subject: [bug-diffutils] bug#20794: ignore subdirectory with diff
Date: Fri, 12 Jun 2015 01:12:42 -0700 (PDT)

Hi, i want to diff two directory, but ignore subdirectory.
For example:
i want to compare new directory and old directory, but i want to ignore old’s a directory.
when use the command as follow:
diff -Nr --exclude=old/a new old, it will print the difference between old/a and new

But i want to ignore the old/a directory:(
The man page tell me  —exclude means  When comparing directories, ignore files and subdirectories whose basenames match pattern.

So it means it cannot ignore subdirectory like aa/bb?
Guys tell me how to deal with, pleas:)

├── new
│   ├── a
│   ├── a.txt
│   ├── b
│   └── c
└── old
    ├── a
    │   ├── 1
    │   ├── 2
    │   └── 3
    ├── a.txt
    ├── b
    └── c


Sent from Mailbox

reply via email to

[Prev in Thread] Current Thread [Next in Thread]