标题:
[文本处理]
继上一个批处理替换指定字符串的求助
[打印本页]
作者:
wxdboiled
时间:
2014-10-22 22:21
标题:
继上一个批处理替换指定字符串的求助
这里一共有2个文件a.txt
<map version="1.0">
<mapID target="dir_open_icon" URL="dir/open/icon.html"/>
<mapID target="Platform_copy_topics" URL="Platform/copy_topics.html"/>
<mapID target="NAS_ISM_help_network_ldap_manager" URL="NAS/ISM_help/network_ldap_manager.html"/>
</map>
b.txt
<toc version="1.0">
<tocitem text="Set a" target="dir_open_icon"/>
<tocitem text="Set b" target="Platform_copy_topics"/>
<tocitem text="Set c" target="NAS_ISM_help_network_ldap_manager"/>
</toc>
需要最终得到a.txt和b.txt 为:
<map version="1.0">
<mapID target="icon" URL="dir/open/icon.html"/>
<mapID target="copy_topics" URL="Platform/copy_topics.html"/>
<mapID target="network_ldap_manager" URL="NAS/ISM_help/network_ldap_manager.html"/>
</map>
b.txt为
<toc version="1.0">
<tocitem text="Set a" target="icon"/>
<tocitem text="Set b" target="copy_topics"/>
<tocitem text="Set c" target="network_ldap_manager"/>
</toc>
前面那个求助解决了一个文件的修改,但是结合另外一个文件就不会了。
请各位大神指点一下哈,急
欢迎光临 批处理之家 (http://www.bathome.net/)
Powered by Discuz! 7.2