Re: Search and replace as per format

2006-09-06 Thread A.J.Mechelynck
Srinivas Rao. M wrote: Hi Tim, Charles, I am rather looking at a generic substitution where the number of open quotes are matched, and then add an argument to log(). IN a generic aproach we may have a variable number of arguments, just like thwe way printf() supports. The strings like module

Search and replace as per format

2006-09-05 Thread Srinivas Rao. M
Hi Vimmers, I am tasked to replace the pattern log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message, status); to log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d message,__FUNCTION__, status); This pattern is appearing in hundreds of source files. Does anybody have a

Re: Search and replace as per format

2006-09-05 Thread Charles E Campbell Jr
Srinivas Rao. M wrote: Hi Vimmers, I am tasked to replace the pattern log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message, status); to log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d message,__FUNCTION__, status); This pattern is appearing in hundreds of source

Re: Search and replace as per format

2006-09-05 Thread Tim Chase
I am tasked to replace the pattern log(module_name, LOG_LEVEL_DEBUG, The Value of status=%d message, status); to log(module_name, LOG_LEVEL_DEBUG, %s:The Value of status=%d message,__FUNCTION__, status); Well, with unknown line-breaks, and not knowing which pieces are subject to change,