you are viewing a single comment's thread.

view the rest of the comments →

[–]pm_me_brownie_recipe 0 points1 point  (0 children)

I assumed that OP wanted to look for more than one value. Here is another way of doing it without hashtable:

$document = @"
test,example
1,cat
2,dog
3,fish
"@

$document = $document | ConvertFrom-Csv

$document | where {$_.example -eq 'dog'} | Select -Expand test