troubleshooting Question

Script to search through csv file and delete any lines of data starting with specific text

Avatar of E=mc2
E=mc2Flag for Canada asked on
Powershell* CSV ExportScripting LanguagesWindows Batch
1 Comment1 Solution19 ViewsLast Modified:
I would like to run a script which searches through a lengthy csv file and deletes any data starting with the following text "Application Started

The line of text might read for instance "Application Started 1/9/2020 9:38:36 AM"

So any line of text in the CSV which starts with the initial characters of the above text should be deleted.

The file should be resaved with that line of text eliminated.
Thanks in advance for your assistance. 
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros