只想知道最简单的解决方案:
如何使用DOS删除b.txt中a.txt中的文本 (a.txt& b.txt包含文本的趋势)
a.text
hfdjfhfjdfd
jjdhfjhkfkkf
jkfjjdfjdj
b.txt
dkhfkhf
hfdjfhfjdfd
jjdhfjhkfkkf
jkfjjdfjdj
jddkbskdjksk
bsdbvbdsdj
谢谢!
答案 0 :(得分:0)
DOS不是首选的方法。此链接包含有关如何从文件中删除数据的一些详细信息。我不是DOS的专家。以下信息可能对您有所帮助。
http://www.computing.net/answers/programming/delete-text-in-txt-files-with-dos/12552.html
以下内容来自上面给出的网站
If "in DOS" means Win XP/2K prompt, as I suspect, that can be achieved by For /F statement. Something as
For /F "tokens=1*" %%A in (Text_File) Do (
Echo horse %%B >> New_Text_File)
Move New_Text_File Text_File /Y
but you get a solution only if you can understand it.