Posted By

danfsmith on 02/03/11


Tagged

Select-String


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

michanne


Select-String to get unique matches, trim and ouput


 / Published in: Windows PowerShell
 

  1. Get-ChildItem -Path C:\WaldenWWW -Recurse | Select-String -Pattern ".jpg|.gif|.png" | %{$_\3.Line.Trim()} | Sort | Get-Unique | Out-File imageinfo.txt

Report this snippet  

You need to login to post a comment.