我想编写一个 vbscript 或批处理文件来运行近一百个文件(在同一目录中)并执行以下操作:
对于以字符串开头的每一行"component "
(组件后有一个空格),我想在该行的末尾添加一个空格。其他线路不受影响。
例如:
this is line one
component this is line two
this is line three
将更改为:
this is line one
component this is line two (<=space)
this is line three
(“二”后面只有一个空格。)