Deleting extra lines in a text file
Posted: 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 "□"
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 "□"