csatblogspotdotcom

Friday, April 3, 2009

vi中删除以"#"开头的行和空白行

将以“#”开头的行替换为空白行
:%s/^#.*//g
删除空白行
:g/^$/d

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home