This might seem a simple question however I am just trying to get my head around this. Say for example if I have a file with headers in it like names and country seperated by breaks in it and I want to filter and output just the name header
I could use a $a= Get-Content C:\temp\names.txt to pull the information from the file. Then I could use a a for each loop to trawl the file. However how does one only filter and output the specific data under the single column heading ?.