💻 Software
Batch Removing Newline in txt files in Windows Command line (cmd)
Fresh5 days ago
Mar 15, 202628285 viewsConfidence Score0%
0%
Problem
There are unnecessary new lines in txt files which i am merging during batch processing. I am thinking fof first removing all new lines and then inserting only one. how can i do that in batch file
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Batch Removing Newline in txt files in Windows Command line (cmd)
Low Risk
You can do the same as Idigas's answer (filtering non-empty lines) using the Windows built-in tool :
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix