2026年物业门控五金耗材推荐榜:中企创联工业品,小区/写字楼/物业多场景门控配件全覆盖
2026/3/2 14:07:46
1. :g/test/s/VSS VDD //g
拆解:
:g/test/
g表示全局(global)匹配。/test/是匹配模式,会选中所有包含test的行。s/VSS VDD //g
s/...//g是替换命令(substitute),将VSS VDD替换为空(即删除)。g表示替换行内所有匹配项(而不仅是第一个)示例:
替换前:
line1: test VSS VDD value line2: no change line3: test VSS VDD another VSS VDD替换后:
line1: test value line2: no change line3: test another