lxskllr
No Lifer
- Nov 30, 2004
- 57,659
- 7,893
- 126
Code:
@echo off
set /p text=<file.txt
(for %%i in (%text%) do echo '%%i')>newfile.txt
https://stackoverflow.com/questions/21064735/replace-all-spaces-with-a-new-line-in-cmd
Edit:
Looks like you can also do it with Notepad++, which is an excellent text editor for Windows...
http://www.inforbiro.com/blog-eng/notepad-replace-with-new-line/
Last edited: