j1n3l0 has asked for the wisdom of the Perl Monks concerning the following question:
I had intended to use a unix cut command but that only takes one file as an argument. I wanted something like this post or a module that does something similar. I've looked but as yet have not found something straight forward enough. Does this look familiar to anyone or do I have to write my own application that goes:% cat file_one chr coord array value 1 100 5730_1 0.123 1 200 5730_1 4.567 ... 21 400 5785_3 2.345 % cat file_two chr coord new_annotation 1 100 1 1 200 1 ... 21 400 60 % cat out_file chr coord new_annotation value 1 100 1 0.123 1 200 1 4.567 ... 21 400 60 2.345
and produces a file that combines all the selected columns from file_one and file_two? Thanks all in advanceperl -MMy::App -e 'merge( file_one=>\@cols_one, file_two=>\@cols_two ) +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: merge files by column (revisted)
by pc88mxer (Vicar) on Mar 10, 2008 at 23:18 UTC | |
by Anonymous Monk on Oct 05, 2011 at 22:24 UTC | |
|
Re: merge files by column (revisted)
by FunkyMonk (Bishop) on Mar 10, 2008 at 23:13 UTC | |
|
Re: merge files by column (revisted)
by j1n3l0 (Friar) on Mar 10, 2008 at 23:32 UTC |