![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic SYNERGY
» SYNERGY/CM
»
searching for a string within a text file.
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.