next a batch file which can trim the spaces

May 25, 2011 at 06:44:21
Specs: Windows 7, 4gb
i have a text file like this..


25-05-2011 09:31:00
232

223

84

300


want to make it as

25-05-2011 09:31:00
232
223
84
300

can any one help me here plz...


See More: next a batch file which can trim the spaces

Report •

#1
May 25, 2011 at 12:54:44
@echo off
type nul > FileOut.txt
for /f "delims=" %%j in (FileIn.txt) do echo.%%j>> FileOut.txt
del FileIn.txt
ren FileOut.txt FileIn.txt

Report •

#2
May 25, 2011 at 23:28:35
Hi, thanks for ur rply, but still the option not wrking for me.

25-05-2011 09:31:00
232
223
84
300

i want to left trim all the lines and make it as

25-05-2011 09:31:00
232
223
84
300


Report •
Related Solutions


Ask Question