Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Delete blank lines from a text file
Name: MC Date: July 11, 2006 at 11:40:09 Pacific OS: XP CPU/Ram: ? Product: IBM thinkpad T43
Comment:
I am trying to delete blank lines from a text file when executing my batch file.
I used the code found on this site @Echo off For /F "tokens=1 delims=" %%A in (c:\orig.txt) Do Echo %%A >> c:\new.txt
But when I open the file it still contains blank lines (spaces) and has the text "Echo if off."
Summary: Hi! I would like to use a batch file to delete the last line of a text file and send the rest of the file to a new text file. I have duplicates rows in my file and need to delete only the last line. T...
Summary: Very simple: I'm trying to extract particular lines from a small text file. Ideally using the Windows command line to take lines 1 and 10 from one text file and output them to another text file. Thank...
Summary: Hi, Is it possible to delete x number of lines from a CSV file using a batch file ? What I have is 2 CSV files with a Log of temperatures from an AirCon unit. The first is an older file contain severa...