Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to joining 3 files into comma seperated file

Status
Not open for further replies.

jaykjoe

Programmer
Jan 15, 2002
10
US
I have 3 files with data with the same number of records in each file. I would like to merge or join these 3 files into a comma delimited file. For example, file1 has the person's name, file2 with their SSN, and file3 has their phone number.

file1 file2 file3
john 123456789 4159876543
jill 987654321 4153456789

combined file:
john, 123456789, 4159876543
jill, 987654321, 4153456789

Thanks.
 
man paste

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Try something like this:
paste -d ',' file1 file2 file3

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks PH, this is exactly what I'm looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top