Linux.com

Author Message
Joined: Jul 24, 2008
Posts: 4
Other Topics
Posted Jul 24, 2008 at 5:42:09 PM
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
join -1 1 -2 1 -o 2.1 2.2 2.3 2.4 2.5 file1 file2 > filenew
But could not succeed .

Thanks in advance.

Back to top Profile Email Website
tophandcwby
Joined Apr 10, 2008
Posts: 66

Other Topics
Posted: Jul 25, 2008 2:23:45 PM
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

Back to top Profile Email Website
vakharia mahesh
Joined Jul 24, 2008
Posts: 4

Other Topics
Posted: Jul 28, 2008 4:25:03 AM
Subject: join command

Dear Frined
Thanks lot and now it is fine and working .Bundle of thanks for your time
devotion .Cheer dear .Have great week end.Bye for now.
:)

Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya