PowerTip: Import colon-delimited file with PowerShell

Doctor Scripto

Summary: Learn how to use Windows PowerShell to import a file that uses a colon as a delimiter.

Hey, Scripting Guy! Question How can I use Windows PowerShell to import a file that is delimited with a colon instead of a comma?

Hey, Scripting Guy! Answer Use the Import-CSV cmdlet and specify the colon as the delimiter, for example:

import-csv -Path C:\fso\applog.csv -Delimiter ':'

0 comments

Discussion is closed.

Feedback usabilla icon