Created
July 20, 2022 17:59
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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