InigoMontoya
IS-IT--Management
I have a really newbie question...
I need to compare 2 files and output to screen what file1 has that file2 does not.
I think the right way to do this is to place them in 2 separate arrays and do a for loop that compares file1[x] with file2[x] if file2[x] doesn't equal file1[x] then print file1[x].
Is there an easier way? TIA
btw I'm using ksh
I need to compare 2 files and output to screen what file1 has that file2 does not.
I think the right way to do this is to place them in 2 separate arrays and do a for loop that compares file1[x] with file2[x] if file2[x] doesn't equal file1[x] then print file1[x].
Is there an easier way? TIA
btw I'm using ksh