You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The -Header parameter of the Import-Csv and ConvertFrom-Csv lets a user load data from headerless Csv files but there is actually no convenient way to convert or export the data back to a headerless Csv file or string.
The workaround is using the Select-Object cmdlet and skip the first line, e.g.:
Summary of the new feature / enhancement
The
-Headerparameter of theImport-CsvandConvertFrom-Csvlets a user load data from headerless Csv files but there is actually no convenient way to convert or export the data back to a headerless Csv file or string.The workaround is using the
Select-Objectcmdlet and skip the first line, e.g.:See e.g.: Powershell export-csv with no headers?
and: Slowness to Remove 3,7 and 9 column from | separated txt file using PowerShell
Proposed technical implementation details (optional)
It would be nice to be able to simply do this: