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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Compare and extract ford2020 Shell Programming and Scripting 8 05-15-2009 09:50 PM
extract data from a data matrix with filter criteria ssshen Shell Programming and Scripting 7 04-16-2009 10:38 AM
Using grep to compare files and extract the difference to another output file spartan22 UNIX for Dummies Questions & Answers 6 02-23-2009 04:51 PM
Get data from 3 differrnt oracle DB & then compare data Amit.Sagpariya Shell Programming and Scripting 4 10-14-2008 07:03 AM
I need to extract last column of a file and compare the values vukkusila Shell Programming and Scripting 4 08-04-2007 11:21 AM

Reply
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
  #1 (permalink)  
Old 06-25-2009
raptrmastr raptrmastr is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 2
how do i compare and extract similiar data

I have 2 files. The first file contains user names in one column. The second, and considerably longer, file contains user names in the first column and corresponding full names in the second column. Currently these are in the .xls format. I'd like to be able to compare file1 with file2 and extract the matching user names and full names to a separate 3rd file.
  #2 (permalink)  
Old 06-26-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,749
1. convert the xls to a csv - UNIX tools cannot read true xls formatted files
2. read the join man page it does just what you want
  #3 (permalink)  
Old 06-26-2009
raptrmastr raptrmastr is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 2
worked like a charm. thanks!
Reply

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 09:22 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