G
GADavies
I need to filter the content of a text file, the file contains numerous columns and all I want is email address. I need to make the filtered content a variable.
So right now I have
Get-Content <file path> | Where-Object { $_ -match "[a-z]@email.domain"
I need to have the results of this set as a variable $email.
How can I do this? I can find ways to make the entire contents a variable or specific lines but not just the email addresses matching the filter.
Continue reading...
So right now I have
Get-Content <file path> | Where-Object { $_ -match "[a-z]@email.domain"
I need to have the results of this set as a variable $email.
How can I do this? I can find ways to make the entire contents a variable or specific lines but not just the email addresses matching the filter.
Continue reading...