Difference btw --not-match-d and --exclude-dir
Brought to you by:
alnd
Would you please explain the use of --not-match-d and --exclude-dir? What is the difference btw these two options?
I arrange my folder structure as following:
D:\X\A1\
D:\X\A2\
In each folder A1 and A2, I have three more subfolders as follow:
D:\X\A1\source
D:\X\A1\doc
D:\X\A1\review
D:\X\A2\source
D:\X\A2\doc
D:\X\A2\review
If I want to count files in "source" folder only, how can I use the the options --match-d and --exclude-dir?
Thank you.
If I want to count the
Anonymous
--not-match-d accepts Perl regular expressions while --exclude-dir works with literal directory names. But you're right, the two are nearly identical. --exclude-dir was implemented first, but --not-match-d can do everything that --exclude-dir can and more.
To only count files in your 'source' folders, do