in reply to Content of one file to another file if a filed matches
$cat File1 File2 | perl -lane '$h{$F[0]} .= " @F[1..$#F]"; END { print + join "\n",@h{qw(A M S T Z)}; }' Rahul 30 27 Apple Radha 45 Mango Ayaan 2 30 Sea Rayan 72 45 Train Sindh 4 90 Zebra $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Content of one file to another file if a filed matches
by Lotus1 (Vicar) on Mar 09, 2017 at 16:49 UTC | |
by trippledubs (Deacon) on Mar 09, 2017 at 19:35 UTC | |
by Lotus1 (Vicar) on Mar 10, 2017 at 14:04 UTC | |
|
Re^2: Content of one file to another file if a filed matches
by misc (Friar) on Mar 11, 2017 at 20:59 UTC | |
by misc (Friar) on Mar 12, 2017 at 03:58 UTC | |
|
Re^2: Content of one file to another file if a filed matches
by sm81 (Initiate) on Mar 09, 2017 at 17:40 UTC | |
by afoken (Chancellor) on Mar 09, 2017 at 18:37 UTC |