|
|
Posted : Thu, 24 July 2008 17:42:09
Subject :
join command
Dear friends
We are on rhel4.4 .when I am using the join command the syntex is not
under stood by me .Can anyone explain ??
I want to join file1 on field 1 with
file2 on field 1 with output required is 1,2,3,4,5 fileds of file2 .
I have exprimented with
[b]join -1 1 -2 1 -o 2.1 2.2 2.3 2.4 2.5 file1 file2 > filenew [/b]
But could not succeed .
Thanks in advance.
|
|
tophandcwby
|
Posted : Fri, 25 July 2008 14:23:45
Subject :
join command
I'm not sure what you are trying to do exactly, but the output specifier needs to be either quoted or comma separated.
join -1 1 -2 1 -o '2.1 2.2 2.3 2.4 2.5' file1 file2 > filenew
join -1 1 -2 1 -o 2.1,2.2,2.3,2.4,2.5 file1 file2 > filenew
|