Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. $file = "test2emails.csv"
  2. import-csv $file | foreach-object{$_.list
  3. write-host $_.list
  4.     if($_.list -match "*@*\.*") {
  5.         ++$count
  6.         }
  7.     }
  8. Write-host "There are $count valid email addresses in $file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement