2 ms·
You can do it in one line in PS too. $sites = @('https://www.google.com/', 'https://www.example.com/') $searchString = 'oogle' $sites | %{ if ((iwr
by Arnavion 9y ago
You can do it in one line in PS too.
$sites = @('https://www.google.com/', 'https://www.example.com/')
$searchString = 'oogle'
$sites | %{ if ((iwr $_).Content -like "*$searchString*") { "$_;OK" } else { "$_;NOT OK" } } > C:\temp\output.csv