read a file and print
Posted on 2008-10-17
New to powershell, trying to figure out a simple output. I can do this with a small script or one liner in perl but not sure how to do this with using powershell
I have a lot of small text files with just one line in each one of them such as
I can read them with Get-Content, what I'm wanting to do is to read each of the lines in all the ..txt files and then put all lines into another file but separate the name and date with a tab, so just doing a Get-Content on all of the ..txt files and piping the output to one file works but does not tab separate the name and date.
How can I read the name and date in each file then output that to a tab separated list.