Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with Clearcase find command

0 views
Skip to first unread message

Kevin Duckett

unread,
Jul 23, 1999, 3:00:00 AM7/23/99
to
In UNIX there is a find command that uses an option "-mtime" and "-atime". The
Cleasrcase find commands has just about every option as the UNIX version except
for a time search option. Can someone give me an idea or two about how I can
select elements from the VOB based on the date and time stamp. THX

--

Paul D. Smith

unread,
Jul 23, 1999, 3:00:00 AM7/23/99
to
Date and time stamp of _what_? Each element in a VOB has lots and lots
of timestamps: when the element was created, when it was last updated,
when each version was created, when labels/attributes/etc. were applied,
etc. etc. etc.

You should look at the query_language man page; it describes the query
language and there is a "created_since" operator there.

And, of course, you can always use normal UNIX find if all you want is
to check the files currently selected by your config spec.

PS. If you're a real masochist you can use UNIX find in the
version-extended namespace, too... hi ho, gotta love ClearCase :).

--
-------------------------------------------------------------------------------
Paul D. Smith <psm...@baynetworks.com> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.

Jonathan Leffler

unread,
Jul 25, 1999, 3:00:00 AM7/25/99
to
Kevin Duckett wrote:
> In UNIX there is a find command that uses an option "-mtime" and
> "-atime". The Clearcase find commands has just about every option

> as the UNIX version except for a time search option. Can someone
> give me an idea or two about how I can select elements from the
> VOB based on the date and time stamp. THX

Along the lines of:

ct find /vobs/thevvob -branch 'created_since(23-July-1998)' -print

Check that syntax; you should find it in the Clearcase manual, but
it most probably will be under something like ccase_query rather
than find. There is a created_before() predicate too; you can use
these in tandem to bound your searches. You can do it on versions
as well as branches. And you specify times with much better accuracy
than the 1 day resolution that find offers!

--
Jonathan Leffler (jlef...@informix.com, jlef...@earthlink.net)
Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN
#include <disclaimer.h>


0 new messages