Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要让我的批处理文件替换“config.ini”中的设置,例如:
color = 1A
我怎样才能找到并只替换1A 部分而不是制作另一条线。
您在类 Unix 操作系统中吗?如果是这样,只需使用 sed 命令:
sed 's/1A/replacedstring/' config.ini
更多信息:http ://en.wikipedia.org/wiki/Sed