Now i thought that parametr "-list" gives only first accurence of the word "word" in every file "file.log" but.... it does not. I get all the accurence of word "word" in all files "file.log" in my folder where i only need one.
Any help ?
by RichardSiddaway at 2013-01-04 06:27:45
Its because you are using Get-Content to pipe each line of the file to select-string. Each line is seen as a different object so -List is working properly