Cannot implement -x switch for diff

Fergus fergus@bonhard.uklinux.net
Thu Jan 12 09:18:00 GMT 2012


Hello,
I want to compare the contents of two large directories whilst omitting 
two subdirectories console5/ and console7/ common to both. But using any 
combination of
diff -rq /d1 /d2 -x console
diff -rq /d1 /d2 -x console.
diff -rq /d1 /d2 -x "console./"
(and several others I thought might work) the subdirectories are not 
skipped.
(I've tried -X with a file argument though I prefer -x with a pattern 
argument as above with no requirement to create files. Also, I would 
like to utilise the trailing / after -x so that any files that happened 
to be named console* would undergo comparison, only the subdirectories 
are skipped.)
Any ideas?
Fergus



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list