info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: find files that are not in CVS


From: Reinstein, Shlomo
Subject: RE: find files that are not in CVS
Date: Mon, 15 Jul 2002 13:40:50 +0300

Hi,

I think the following can get you what you want:
        cvs -qn update | grep "^?" | cut -f 2 -d " "
Explanation: Instead of using "cvs status" (whose output is not very
convenient for processing), you can use "cvs update". The "-n" global option
tells CVS not to modify the files (i.e., only "pretend" to update), but only
to show what it would do if it were to update the files. The output of "cvs
update" tells you which files are added/removed/modified, and which are
unknown. By "grep"ing for "?" at the beginning of the line, you filter out
all files but those which are not in CVS. Finally, we get the 2nd field,
which is the filename, using "cut".
If you like, you can simply run "cvs -qn update" and see the output.

Hope I've been helpful.
Shlomo


-----Original Message-----
From: Dmitry Trunikov [mailto:address@hidden
Sent: Monday, July 15, 2002 1:00 PM
To: address@hidden
Subject: find files that are not in CVS


    Hi All.
I'm newbie in CVS and need in your help. Problem is in following. I have 
a directory which has many files (more than 600). Some files are in CVS 
and other are not because they ware not added to CVS in time. I want to 
add new files to CVS but I don't know exactly their names. At current 
time I can to do command "cvs status" and select files which are not in 
CVS but list is too big and hard for processing. Can anybody advise me 
other solution?

Thanks.


_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]