![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum 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 |
| join two files | koti_rama | Shell Programming and Scripting | 5 | 08-05-2008 01:20 AM |
| Join | jazz8146 | UNIX for Dummies Questions & Answers | 5 | 01-29-2008 07:42 AM |
| join (pls help on join command) | summer_cherry | Shell Programming and Scripting | 1 | 12-31-2007 01:19 AM |
| Join help with -e option | Ken555 | UNIX for Dummies Questions & Answers | 2 | 08-21-2006 07:50 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
awk, join or sed
Code:
$ cat file1 a:23:43 A B C a:24:21 a:23:44 S D A F a:24:44 a:23:45 S D E a:24:45 $ cat file2 a:23:53 T B E W a:24:53 a:23:54 S W F a:24:54 a:23:56 Q W W E E a:24:56 The starting line "a" is always constant. i.e. required output: Code:
a:23:43 A B C a:24:21 a:23:53 T B E W a:24:53 a:23:44 S D A F a:24:44 a:23:54 S W F a:24:54 a:23:45 S D E a:24:45 a:23:56 Q W W E E a:24:56 Please. |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|