Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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"
like image 568
Colin Wu Avatar asked Dec 18 '25 11:12

Colin Wu


1 Answers

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.

like image 156
Colin Wu Avatar answered Dec 21 '25 08:12

Colin Wu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!