发现change是一个好的文字替换工具
在新dos时代上偶然发现一个程序 change 用于替换字符或十六位字
比如:
change test.txt /from yes /to no
把test.txt文件中的yes替换为no;
change test.txt /from &h0d0a0d0a /to &h0d0a
把test.txt文件中的空行去掉。
change test.txt /text /from a* /to 999 /IN the
如果test.txt文件中有一行出现单词‘the’ 则把该行所有单词中字母‘a’到该词结尾的字串替换为‘999’
其他参数还有很多,能胜任各种复杂的工作。
它也可以在控制台模式工作。
在新dos时代上偶然发现一个程序 change 用于替换字符或十六位字
比如:
change test.txt /from yes /to no
把test.txt文件中的yes替换为no;
change test.txt /from &h0d0a0d0a /to &h0d0a
把test.txt文件中的空行去掉。
change test.txt /text /from a* /to 999 /IN the
如果test.txt文件中有一行出现单词‘the’ 则把该行所有单词中字母‘a’到该词结尾的字串替换为‘999’
其他参数还有很多,能胜任各种复杂的工作。
它也可以在控制台模式工作。

