Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created July 20, 2022 17:59
Show Gist options
  • Save JohnL4/0f5b8ed9140aec4fc9ba65e597639cdf to your computer and use it in GitHub Desktop.
Save JohnL4/0f5b8ed9140aec4fc9ba65e597639cdf to your computer and use it in GitHub Desktop.
PowerShell snippet to find out which versions of jQuery you have on your file system
ls jquery* -rec | sls 'jquery.*\b(v[1-9]+(\.[0-9]+(\.[0-9]+)?)?)' | select Filename,@{Name="Version";Expr={ $_.Matches[0].Groups[1].Value}},Path,@{Name="Line";expr={if ($_.Line.Length -gt 1024) { $_.Line.Substring(0,1024)} else {$_.Line}}} | ogv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment