0

How can I separate the data below into two columns delimited by semicolon?

GROUPING;SERIAL NUMBER              
-----------------------             
\\SDD\GMRN\CMM\KAYHA;18137521400329 
\\SDD\GMRN\CMM\KAYHA;18225521400335 
\\SDD\GMRN\CMM\KAYHA;18225521400341 

My expected output is:

GROUPING               SERIAL NUMBER              
--------               --------------             
\\SDD\GMRN\CMM\KAYHA   18137521400329 
\\SDD\GMRN\CMM\KAYHA   18225521400335 
\\SDD\GMRN\CMM\KAYHA   18225521400341 

Thanks!

2
  • What have you tried so far? stackoverflow.com/help/mcve Commented Nov 18, 2018 at 12:38
  • im still searching. Commented Nov 18, 2018 at 12:40

1 Answer 1

1

Sharing you the solution I've found:

When importing csv file, use (-Delmiter) :

 $csvfile = Import-Csv -Path $Dialog.FileName -Delimiter ";"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.