How to delete Linefeed using batch file

梦想与她 提交于 2019-12-06 10:11:45

问题


I want to delete Linefeed in text file using batch file. Is it possible to do. Please provide some help


回答1:


If you mean removing empty lines from text files try this in a batch file:

for /f "delims= tokens=*" %%x in (inputfile.txt) do echo %%x >> outputfile.txt

you may also want to replace inputfile.txt and outputfile.txt by %1 and %2 to be used for any file given its name to the batch file



来源:https://stackoverflow.com/questions/3116022/how-to-delete-linefeed-using-batch-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!