[nzlug] non-RCS file check
Jim Cheetham
jim at gonzul.net
Fri Jul 28 15:39:30 NZST 2006
On Fri, Jul 28, 2006 at 03:13:31PM +1200, Johann Schoonees wrote:
> How do I (recursively) print out the names of all the files that are
> *not* under RCS?
> Printing the ones which *are* under RCS is easy:
> find -name "*,v"
I'd thought that ls would have an "exclude" option; it does, but only
for patterns and not for a static list.
So grep -v might help; pipe ls into a grep statement made up of the list
of files that *are* in RCS?
pseudo$ ls | egrep -v '^(notme|notmeeither|definatelynotme)$'
Consutucting that egrep line might not be nice, and beware of the
anchoring (otherwise the "notme" pattern would exclude "butnotnotme",
which wasn't named)
-jim
More information about the NZLUG
mailing list