GNU bug report logs - #15452
Comparing files whose name _do_ match a certain pattern

Previous Next

Package: diffutils;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Tue, 24 Sep 2013 08:00:02 UTC

Severity: wishlist

Full log


Message #11 received at 15452 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eric Blake <eblake <at> redhat.com>
Cc: 15452 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#15452: Comparing files whose name _do_ match
 a certain pattern
Date: Tue, 24 Sep 2013 16:34:25 +0200
> Ah, but why should we bloat diff when find already gives you what you want:
>
> find . -name '*.txt' -exec diff {} other/{} \;
>
> will run diff on only files ending in *.txt, when comparing . against
> other/.

Ah yes, that's one possibility for doing what I want, but I'd
definitely prefer having the "--include" option, because:

1. Simplicity: It would be a lot simpler than the find/diff
combination.  And in the probable case that the "old" directory to
compare is not the current working directory, things get even more
complex, because the files in the "new" directory could not be
expressed in such a simple way ("whatever/{}").

2. Consistency: Why not having an "--include" option when we have an
"--exclude" option?

-- 
Dani Moncayo




This bug report was last modified 11 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.