Hi folks,
I've got several config files which I'm looking to archive using an automated tool which compares it to the most recent revision and archives if there are changes. However, several of the files have a line in them which contains a date and therefore the tool will always archive them.
I'm trying to write a script which will remove an entire line if it begins with a specific series of characters but to be honest I'm nowhere with this. I did try to search the forum for similar posts but couldn't see anything. I'm just really looking for someone to point me in the right direction not to do the thing for me.
Any help would be much appreciated.
Remove lines from txt file using script
Moderator: DosItHelp
Re: Remove lines from txt file using script
findstr /?
Re: Remove lines from txt file using script
Thanks very much. Managed it using
findstr /v/c:"search term" input.txt > "C:\output.txt"
findstr /v/c:"search term" input.txt > "C:\output.txt"