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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-04-2008
ricky007 ricky007 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 9
Smile Find duplicates from multuple files with 2 diff types of files

I need to compare 2 diff type of files and find out the duplicate after comparing each types of files:

Type 1 file name is like: file1.abc
(the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations).

The other file is file1.bcd01abc (the extension bcd is constant, 2 digit (00 to 04) and last three character could be any 3 letters (I can narrow that last 3 charcaters to 10-15 combinations).

whenever the script finds a duplicate after coparing these two types of files, the output will indicate "duplicate found in file1.abc and and file1.bcd01abc and the value is xxxx".


Both of file format:
172.10.10.19<TAB>rou020i00sfg<TAB>descriptions

Thanks and this is not a homwork.