mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 06:27:16 +02:00
Replaced the done character
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Searches for text in files
|
||||
.DESCRIPTION
|
||||
@ -25,7 +25,7 @@ param([string]$textPattern = "", [string]$filePattern = "")
|
||||
function ListLocations { param([string]$textPattern, [string]$filePattern)
|
||||
$list = Select-String -path $filePattern -pattern "$textPattern"
|
||||
foreach($item in $list) { New-Object PSObject -Property @{ 'FILE'="$($item.Path)"; 'LINE'="$($item.LineNumber):$($item.Line)" } }
|
||||
"✔️ Found $($list.Count) lines containing '$textPattern' in $filePattern."
|
||||
"✅ Found $($list.Count) lines containing '$textPattern' in $filePattern."
|
||||
}
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user