![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cut and paste columns using awk | cosmologist | UNIX for Dummies Questions & Answers | 8 | 05-15-2009 12:29 PM |
| Replace columns from File1 with columns from File2 | seijihiko | UNIX for Dummies Questions & Answers | 1 | 04-22-2009 04:34 AM |
| Appending the last few columns to the front | ragavhere | Shell Programming and Scripting | 3 | 07-08-2008 10:11 AM |
| cut & paste | t_harsha18 | Shell Programming and Scripting | 3 | 10-02-2005 04:16 AM |
| Appending columns on a file | abel | Shell Programming and Scripting | 2 | 09-27-2002 08:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
appending several columns with awk and paste
Hello,
I am trying to solve for a couple of hours now the following problem: I have n files and would like to add the third column of each file to a new file: temp1.txt 1 2 3 1 2 3 1 2 3 temp2.txt 1 2 4 1 2 4 1 2 4 1 2 4 temp3.txt 1 2 5 1 2 5 1 2 5 and so on.... The desired output would be: 3 4 5 .. 3 4 5 .. 3 4 5 .. I thought I managed to get the two columns of each file into a new file with awk and with paste -d, but I havent found a away to combine the two. Any hints would be greatly appreciated! Thanks! J |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|