Creating csv from multiple files

Is there any way for me to read from let's say 4 different files in ksh. Each has a list of server names. I want to put one column from each file in a .csv file.  I hope I'm clear enough.
David AldridgeAsked:
Who is Participating?
ozoConnect With a Mentor Commented:
paste -d,  file1 file2 file3 file4 > onefile
do you mean like this?
paste -d,  file1 file2 file3 file4
David AldridgeAuthor Commented:
I have 4 files. Each with one column. I want to read the files and put them all in one file like this:

from file1          from file2       from file3      from file4

server1,               server2,          server3,          server4,
server5,               server6,          server7,          server8

Make sense?  I probably shouldn't numbered the servers, but just think of them as regular server names that come from each file.

David AldridgeAuthor Commented:
Great once again.  Perfect ozo.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.