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


Comments


You need to login to view comments.