开发者

How to delete Linefeed using batch file

开发者 https://www.devze.com 2023-01-04 13:32 出处:网络
I want to delete Linefeed in text file using batch file. Is it possible to do. Please provi开发者_如何学Gode some helpIf you mean removing empty lines from text files try this in a batch file:

I want to delete Linefeed in text file using batch file. Is it possible to do. Please provi开发者_如何学Gode some help


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号