removing all lines from a .txt that begin with "-".

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
paullac
Posts: 1
Joined: 26 Nov 2014 12:27

removing all lines from a .txt that begin with "-".

#1 Post by paullac » 26 Nov 2014 18:28

Hi there,
I've searched and searched but have not found how. I'm sure it's something simple, but I have no clue.
Any assistance would be appreciated. Thank you

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: removing all lines from a .txt that begin with "-".

#2 Post by Squashman » 26 Nov 2014 22:45

Code: Select all

Findstr /b /v /c:"-" myfile.txt >new file.txt

Post Reply