[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delete 400+ files from cvs
From: |
Xicheng |
Subject: |
Re: delete 400+ files from cvs |
Date: |
31 Jan 2006 21:33:36 -0800 |
User-agent: |
G2/0.2 |
Xicheng wrote:
> comeon wrote:
> > Dear friends:
> >
> > I need to remove 400+ Fortran files from a CVS directory. Basically, I
> > need to remove the whole directory. Is there any way to remove the
> > whole directory? Do I need to remove the file one by one? There 400+ of
> > them! Removing them one by one is lot of works. The OS is Linux.
> I generally do something like this:
> ===========================
> find . -type d -name CVS -prune -o -type f -name "*.[Ffh]" -print -exec
> cvs rm -f {} \;
the above command remove files from the repo one by one, so may be very
slow. you may use the following command instead:
find . -name CVS -prune -o -type f -name "*.[Ffh]" -print0 | xargs
-0r cvs rm -f
(untested...)
Xicheng
> # this doesnot "cvs remove" files under CVS sub-directories...
> cvs ci -m"removing all Fortran files under dir"
> cvs up -P
> ===========================
> Xicheng
>
> >
> > Your hint is highly appreciated!!!
> >
> > Chandler