Computing.Net > Forums > Programming > delete specified line from a file

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

Reply to Message Icon

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 :(

any help would be apreciated



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: January 29, 2009 at 07:24:27 Pacific
Reply:

find /v "the string" < myfile > newfile


=====================================
If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: delete specified line from a file

Delete blank lines from a text file www.computing.net/answers/programming/delete-blank-lines-from-a-text-file/14525.html

delete line from the file if there is no thir www.computing.net/answers/programming/delete-line-from-the-file-if-there-is-no-thir/19138.html

Get first line from a file www.computing.net/answers/programming/get-first-line-from-a-file/14984.html