![]() |
|
XP is just a number | |
PerlMonks |
Re^2: combining 2 files with a comon fieldby jhourcle (Prior) |
on May 18, 2005 at 13:57 UTC ( #458207=note: print w/replies, xml ) | Need Help?? |
If we're going with that assumption (same number of lines, and the keys are in the same order), then it's a one liner in unix shell: paste -d\| file1 file2 | cut -d\| -f1,2,5- > file3I think I prefer jmcnamara's solution with join, though, as it's more forgiving of bad input.
In Section
Seekers of Perl Wisdom
|
|