I am trying to remove all empty lines from a text file using a Windows batch program.
I know that the easiest way to achieve this is ba sh through regular expressions and sed command:
sed -i "/^$/d" test.txt
Question: Does the Windows package have a similar simple way to delete all lines from a text file? Otherwise, what is the easiest method to achieve this?
Note: I am running this script package to install new Windows computers for use by clients, so it is advisable that no additional programs are installed (and then configured) to achieve this - Ideally, I just use the "standard" batch library.
source
share