The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
join (pls help on join command) summer_cherry Shell Programming and Scripting 1 12-31-2007 05:19 AM
Join Command Help jerome Sukumar Shell Programming and Scripting 0 01-25-2007 03:08 AM
join command penfold Shell Programming and Scripting 22 02-22-2005 08:37 AM
Join command unisam UNIX for Dummies Questions & Answers 4 07-28-2004 07:59 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-07-2005
Supial Supial is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 2
Question Using Join Command

Greetings,
I am attempting to use the join command to produce a file from 2 sorted comma seperated files. Ex.:
FILE 1:
jane,dow
joe,blow


FILE 2:
jane,dow,50,50,20
joe,blow,29,53,25
spike,lee,50,91,05

I want the resulting file to be reconds in FILE 2 where the person exists in FILE 1. ex:

joe,blow,29,53,25
jane,dow,50,50,20

I've tried using join -t, -j1 1 -j1 2 -j2 1 -j2 2 -o "2.1 2.2 2.3 2.4 2.5" FILE1 FILE 2 but it seems to only give me the first record matched (joe,blow,29,53,25). I expect the number of records in the resulting file to be the same as that of FILE 1.

Any help would be appreciated to resolve my problem.
Thanks,
Marcel Sammut

Last edited by Supial; 08-07-2005 at 07:19 PM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0