Colin Wu
Colin Wu

Reputation: 699

How to specify tab char as delimiter for Export-Csv (PowerShell)

A complete newbie with PowerShell here. I need to export data as a tab-delimited file and it looks like Export-Csv is the utility to use. I can't figure out how to specify the tab character though. I have tried

Export-Csv -Delimiter \t

and

Export-Csv -Delimiter "\t"

Upvotes: 3

Views: 7941

Answers (1)

Colin Wu
Colin Wu

Reputation: 699

Found the answer here: How do I type a TAB character in PowerShell?.

Basically use "`t" (back-tick t in double quotes) to specify a tab in PS.

Upvotes: 4

Related Questions