in reply to Adding a particular column from one file to a second file
You have two tab-delimited data files. They have a common key in their leftmost columns. You need to join the data in the two flat-file database tables (i.e., the two tab-delimited text files). You need an easily-configured command-line utility.
Use the join utility. Based on your description of your problem and your needs, there's no good reason to reinvent the join utility in Perl.
The command may be as simple as this:
join -t '<tab>' file1.txt file2.txt > file3.txtCome join us on JoinMonks.org! ;-)
Jim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding a particular column from one file to a second file
by ZWcarp (Beadle) on Jul 15, 2011 at 17:09 UTC | |
by ZWcarp (Beadle) on Jul 15, 2011 at 17:13 UTC |