I am trying to automate a CSV file that contains lots of rows of data. Here is a sample:
= ID = Last Name = User ID =
============================
= 22 = Smith = 0077 =
= 22 = Smith = 0078 =
= 22 = Smith = 0079 =
= 22 = Jones = 0081 =
and the list goes on.
What I want to do is combine the ID column with the Last Name column and put it in a new CSV file using PowerShell. I tried the following:
@{n=’ID’;e={$_.ID + ”-” + $_.Last Name}}
but did not have much luck with this.