: . , ( PSv2):
$myCSV | Select-Object FC*
() -Property , FC* ( ), FC.
, : 5 , PowerShell Format-List, .
, Format-Table ( , PowerShell , 4 ):
$myCSV | Select-Object FC* | Format-Table
CSV (TSV):
Import-Csv mydata.txt -Delimiter "`t" | Select-Object FC* |
Export-Csv myresults.txt -Encoding Utf8 -Delimiter "`t" -NoTypeInformation
:
Import-Csv mydata.txt -Delimiter "`t" | Select-Object FC* |
ConvertTo-Csv -Delimiter "`t" -NoTypeInformation | Select-Object -Skip 1 |
Set-Content myresults.txt -Encoding Utf8
:
PSv2, .
([string[]]):
[string[]] $FCcols = $myCSV[0].psobject.Properties | % { $_.Name } | ? { $_ -match '^FC' }
, % ForEach-Object ? Where-Object.
, , -match, ^FC, , FC.
PSv3 +, :
$FCcols = $myCSV[0].psobject.Properties.Name -match "^FC"
, .Name .psobject.Properties, v3 + .Name , .