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 specified line from a file
Name: Karl Date: January 29, 2009 at 04:54:21 Pacific OS: Windows XP Subcategory: Batch
Comment:
hi i am trying to delete a specific line of text from a textfile using the windows commands, easy to do with sed, but harder in windows :(
Summary: 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.tx...
Summary: Please help me writing a spinet which can delete the line from a file which does not have thrird field the file contains some like ,,, xxx yyy zzz cccc yyyy xxx yyy xxx yyy nnn nnn nnn xxx yyy nnn n...
Summary: I need to get from a file only the first line and to write it into other file-only using DOS commands.Till now I have managed to get the entire content of the file using a command like: FOR /F "usebac...