The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



Thread: Compare files
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #25 (permalink)  
Old 03-14-2007
matrixmadhan matrixmadhan is offline
Technorati Master
 

Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
This time its very clear!

Thats clearly my mistake

change the following line
from
Quote:
if( $first_arr[$j] =~ $second_arr[$i] ) {
messed up with the operator!

Code:
if( $first_arr[$j] eq $second_arr[$i] ) {
and here is the output!
Code:
AAABB370 role3
AAABB371 role3
AAABB372 role3 role4
AAABB373 role5 role6
AAABB374 role6 role1 role2 role3
and this time, i hope so it would be perfect!
Reply With Quote