[thowat@unixadmin2 thowat]$ diff -r
--exclude=/home/thowat/testdir/foo/* /home/thowat/testdir
/home/thowat/testdir2
Only in /home/thowat/testdir2/foo: other
[thowat@unixadmin2 thowat]$ diff -r --exclude=/home/thowat/testdir/foo
/home/thowat/testdir /home/thowat/testdir2
Only in /home/thowat/testdir2/foo: other
testdir:
total 8
-rw-rw-r-- 1 thowat thowat 4 Jan 21 11:39 file
drwxrwxr-x 2 thowat thowat 4096 Jan 21 11:39 foo
testdir/foo:
total 4
-rw-rw-r-- 1 thowat thowat 4 Jan 21 11:39 dog
testdir2:
total 8
-rw-rw-r-- 1 thowat thowat 4 Jan 21 11:39 file
drwxrwxr-x 2 thowat thowat 4096 Jan 21 11:40 foo
testdir2/foo:
total 8
-rw-rw-r-- 1 thowat thowat 4 Jan 21 11:39 dog
-rw-rw-r-- 1 thowat thowat 5 Jan 21 11:40 other
Now, I would expect the --exclude to prevent any results being given
for testdir/foo? Am I using this wrong? As you can see I've tried both
wildcarded and unwildcarded forms.
Perhaps it's time to just pack me off to the house on the hill for
regular cold baths and strong medication?
Help would be appreciated.
--
Absurd Procrustean Egghead Cornstarch Variant Bill Marcum