Powershell function to search CSV logs for certain regexes
Clash Royale CLAN TAG #URR8PPP .everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0; up vote 1 down vote favorite I have a parser that goes through two different logs, both .csv files, and checks for certain lines based off the regex code that I have chosen. This parser works fine, it just takes about a minute to parse through about 100 files. This parser is based off another parser I have that only parses through one log type and it is incredibly fast, like 200 files in maybe 15 secs. This one grabs the IDNumber from the beginning of the filename (1234-randomfile.csv), then adds the files location to a variable ( $Validate ), then based on the regex, adds files to certain variables ( $Scriptdone , $Updatedone , $Failed ) and starts the checks to see if they have them. Like I said, it works, but it is slow. If you have any input on a way to quicken this up, or maybe clean up my code (I am still learning), it will all be greatly appre...