Using Select-String for checking two .txt files in powershell
问题 I am complete new in writting powershell scripts. So far I was using plain batch for my purpose as this is the requirement by my company. Inside this batch I am using nested foor loops to make a comparison of two .txt files, in detail I wantdo do the following: File 1 contains lots of strings. Each string is in one seperate line with a preceded number and semicolon like so: 658;RMS File 2 is some long text. The aim is to count the amount of occurences of each string from File 1 in File 2, e.g