Deleting extra lines in a text file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
scorpio
Posts: 3
Joined: 02 Oct 2008 04:44
Location: PHP

Deleting extra lines in a text file

#1 Post by scorpio » 02 Oct 2008 23:07

Hi

Good day!

Hope you can help me with this. I have a program that create a txt file. This program always create about 60 lines of ASCII character before the actual data are created.

Is there a command in DOS that will automatically delete that 60 lines?

I just read from this forum about this command, deleting a character.
which says:

Type "file.txt" |find.exe /v "□">"file.txt.bak" && del /f/q/a "file.txt" && ren "file.txt.bak""file.txt"

where file.txt is the file that was created with extra character of "□"

Post Reply