9 lines
397 B
PowerShell
9 lines
397 B
PowerShell
$files = Get-ChildItem -Path 'd:\www\idea-workspace\training\RuoYi-Vue' -Recurse -Filter 'pom.xml' -ErrorAction SilentlyContinue
|
|
foreach ($f in $files) {
|
|
$m = Select-String -Path $f.FullName -Pattern 'kingbase','mysql' | Select-Object -First 20
|
|
if ($m) {
|
|
Write-Output ('==== ' + $f.FullName)
|
|
$m | ForEach-Object { Write-Output (' L' + $_.LineNumber + ': ' + $_.Line.Trim()) }
|
|
}
|
|
}
|