I´m stuck on a problem…
I´m trying to format text in powershell.
Here´s what I´m trying to do:
I´ve got a plain-text file containing the employee id and mail address from an ldap export which I´ve already cleaned up and looks like this:
0001
a@y.com
0002
b@y.com
0003
c@y.com
....
0400
z@y.com
And I want convert this to the following:
0001,a@y.com
0002,b@y.com
0003,c@y.com
...
0400,z@y.com
The only thing which I´ve found so far is that I could create an output which will look like this:
0001,a@y.com,0002,b@y.com,0003,c@y.com...0400,z@y.com
Can someone help me with this?!?!
try: