![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding columns to a file | figaro | UNIX for Dummies Questions & Answers | 5 | 4 Weeks Ago 10:50 PM |
| comparing files - adding/subtracting/formating columns | oabdalla | Shell Programming and Scripting | 7 | 06-13-2008 12:20 AM |
| Perl: adding columns in CSV file with information in each | dolo21taf | Shell Programming and Scripting | 1 | 03-04-2008 10:52 PM |
| Adding columns to excel files using Perl | dolo21taf | Shell Programming and Scripting | 1 | 02-20-2008 03:13 AM |
| adding columns | Kelam_Magnus | Shell Programming and Scripting | 9 | 01-25-2002 06:35 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Adding columns of two files
Hello everyone,
I have two files containing 6 columns and thousands of rows. I want to add them (i.e. first column of first file + first column of second file and so on) and print the output in a third file. Can you please help me. Thanks a lot |
| Forum Sponsor | ||
|
|
|
|||
|
Thanks a lot for the help. But I am not sure I made myself clear. Suppose I have files A and B (shown below) with 2 rows and 3 columns -
I just want another file with the same dimensions, just adding the corresponding element in each file. A 1 1 1 2 2 2 B 1 1 1 3 3 3 Output file C 2 2 2 5 5 5 Does this program do that? Thanks a lot Last edited by chandra321; 04-05-2007 at 05:39 PM. |