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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Append columns from one file to the end of another 2

Status
Not open for further replies.

ericpatton

Technical User
Mar 4, 2006
6
CA
I have two files; I want to append the two columns of data that exist in file2 at the end of file1. So, if file 1 has 10 fields of data, the columns 1 and 2 from file2 would now become fields 11 and 12 in file1. All fields from file1 remain unchanged.

Thanks!
 
In an *nix shell:
pr -t -m -s' ' file1 file2 > newfile

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top