Answers for "string compare powershell"

2

comparing strings in powershell

$name = "Curt"
$anotherName = "Alicia"

echo ($name -eq $anotherName) # Equal (false)
echo ($name -lt $anotherName) # Less Than (false)
echo ($name -gt $anotherName) # Great Than (true)
Posted by: Guest on April-12-2021
0

powershell compare

Compare-Object -ReferenceObject $(Get-Content D:temptesttest.txt) -DifferenceObject $(Get-Content D:temptesttest1.txt)
Posted by: Guest on June-16-2021

Browse Popular Code Answers by Language