Select-String to get unique matches, trim and ouput

/ Published in: Windows PowerShell
Save to your folder(s)

Copy this code and paste it in your HTML
  1. Get-ChildItem -Path C:\WaldenWWW -Recurse | Select-String -Pattern ".jpg|.gif|.png" | %{$_.Line.Trim()} | Sort | Get-Unique | Out-File imageinfo.txt

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.