У меня есть текстовый файл со следующим содержимым:
testdemo | 5 | 4563456| OMNI | retailomni
testRetail | 142 | 3453456345| testRetai111l | test
testtesttest | 44 | 4564356| apl | APL
Мне нужно выбрать всю строку, которая начинается с "testdemo".Как это можно сделать в PS?
$operator = "testdemo"
$operatorcontent = Get-Content operators.txt | "Need to get whole string, starts from $operator"