Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: searching for a string within a text file.
Topic Summary:
Created On: 6-Apr-2005 10:08
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 6-Apr-2005 10:08
User is offline View Users Profile Print this message


praveen nimmagadda

Posts: 2
Joined: 19-Oct-2004

I have a lot of code/projects on the CM Synergy backend database which I want to grep though the text files for a string.

How would you do that without checking out each project?

I prefer doing it via the ccm command.

Report this to a Moderator Report this to a Moderator
 7-Apr-2005 12:54
User is offline View Users Profile Print this message


Sachgebiet 312

Posts: 4
Joined: 26-Jan-2004

Hi, praveen.
Try this.
At first a query to get all code Objects (ascii-based).
f.e.

ccm query "name match '*.cbl'

At second a ccm attr -show:

ccm attr -s source @1 or @2 a.s.o


This command will show you the content of the object.


Regards

Hans-Peter Kempen
Report this to a Moderator Report this to a Moderator
 8-Apr-2005 08:28
User is offline View Users Profile Print this message


Lutz Zollikofer

Posts: 44
Joined: 31-Jul-2003

Hi Praveen,

using ccm commands always wastes a lot of time. But you're right, this is the safest way to do it.
Anyway, if you want to change a string all over a big database you can run a script updating the archive cache directly. If you're sure that the string to change is only included by ascii files and not by binaries you can do it without testing the file type. (each open/close wastes time)
Be sure of not changing the file attributes and permissions. Synergy uses differences in date and time of cache and local workarea to decide whether if a file has changed or not.

ciao, Lutz
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.