How to delete Linefeed using batch file
-
29-09-2019 - |
Question
I want to delete Linefeed in text file using batch file. Is it possible to do. Please provide some help
Solution
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow