Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $file = "test2emails.csv"
- import-csv $file | foreach-object{$_.list
- write-host $_.list
- if($_.list -match "*@*\.*") {
- ++$count
- }
- }
- Write-host "There are $count valid email addresses in $file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement