Link to home
Start Free TrialLog in
Avatar of David Aldridge
David AldridgeFlag for United States of America

asked on

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.
Avatar of ozo
ozo
Flag of United States of America image

do you mean like this?
paste -d,  file1 file2 file3 file4
Avatar of David Aldridge

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great once again.  Perfect ozo.