How to stop the Windows command line from outputting an empty line after each command?
Fresh3 days ago
Mar 15, 20268952 viewsConfidence Score0%
0%
Problem
I'm redirecting a batch file's output into a text file and don't want blank lines between each command. I realise I could post-process with a perl one-liner, but would rather not. Is there an option somewhere to suppress these unnecessary blank lines?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to stop the Windows command line from outputting an empty line after each command?
Low Risk
always outputs a new line before it prints its prompt. This means that something like will always have that blank line since prints a line break automatically. However, something like will not have the empty line in between since above is the the tr…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix