[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 问一个sed的问题



On Wed, Nov 29, 2006 at 07:29:53PM +0800, jun yu wrote:
> 可以的
> 
> http://www-128.ibm.com/developerworks/cn/linux/shell/sed/sed-1/index.html
> 
> 具体你可以看上面链接的介绍.

上面好象没有提到任何与多行模式相关的内容,不知道你是怎么做的,能提示一
下吗?比如下例:

int main() 
{
	do_something; /* this block is commented
	do_other_thing;
	...
	do_third_thing; */

}



> 
> >有没有办法使得可以替换多行内容,比如将一个 C++ 
> >语言源文件中的所有注释
> >全部去掉,对于 // 开始的注释比较好处理,但对于 /* xxx 
> >*/ 这种注释就比
> >较麻烦了。
> >
> >------------------------

-- 
Steady movement is more important than speed, much of the time.  So long
as there is a regular progression of stimuli to get your mental hooks
into, there is room for lateral movement.  Once this begins, its rate is
a matter of discretion.
		-- Corwin, Prince of Amber



Reply to: