The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
Google UNIX.COM


Filesystems, Disks and Memory Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go 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 01:19 AM
Command line tool to join multiple .wmv files? karman OS X (Apple) 2 09-22-2007 10:52 PM
how to join files jxh461 UNIX for Dummies Questions & Answers 5 08-23-2007 04:11 AM
join files mohan705 Shell Programming and Scripting 3 03-15-2007 02:51 AM
Join Files choppas Shell Programming and Scripting 2 10-18-2006 07:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2002
Registered User
 

Join Date: Aug 2002
Posts: 5
Angry using join command for files

Hi,
I have to join 2 files based on two key field columns.
But join command allows to give only one key column for fetching.So kindly update me whether i can compare 2 files based on two key columns or more than one key column.If so what is the syntax to compare it.
With thanks in advance,
subra.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-13-2002
Registered User
 

Join Date: Jun 2002
Location: Chennai, India
Posts: 110
You can compare two files using diff, comm, cmp commands...
use man pages for further details...

if your file is large then u can also use bdiff..

Is this what you are looking for???

-Nisha
Reply With Quote
  #3 (permalink)  
Old 08-13-2002
Registered User
 

Join Date: Mar 2002
Location: Muenster - Germany
Posts: 22
I don´t think you´re right, nisha, cause he like to join two files based on two fields and not only want´s to see the difference between those files for what you´re using the diff/compare command.
But I´ve no idea how to help - probably awk or sed should help let me have a look :-)

BRGDS

Frank
Reply With Quote
  #4 (permalink)  
Old 08-13-2002
Registered User
 

Join Date: Aug 2002
Posts: 5
Hi,
I am specifically looking for the join command only...I've got the results from the diff utility and now i want to seperate the results obtained from it based on some conditions..So i want to know whether join can be used for more the one key column ...
with thanks
subra
Reply With Quote
  #5 (permalink)  
Old 08-13-2002
Registered User
 

Join Date: Aug 2002
Posts: 5
Angry query formatted

Hi,
I think i did not state my query properly.This is the actual scenario....
Consider that there are two files. Each file contains data stored in a table in a database. Assume that the respective tables have primary key defined on atleast two columns. Is it possible to join the two files on these primary key columns?
with thanks in advance,
subra.
Reply With Quote
  #6 (permalink)  
Old 08-13-2002
Registered User
 

Join Date: Mar 2002
Location: Muenster - Germany
Posts: 22
Join can only be used for only one key column - so we have to find out an other solution.

greetz,
frank
Reply With Quote
  #7 (permalink)  
Old 08-13-2002
Registered User
 

Join Date: Aug 2002
Posts: 5
Exclamation hi

Hi,
Thanks to everyone for ur prompt replies.Can u suggest me the other solution or kindly post a reply to this query when u come across an alternative to this...
Thanks in advance,
subra
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0