Hello,
I am new here, so first of all I want say hello to everyone.
I am newbie on script but you may be able to help me on this :
I am on solaris (ksh)
I need to compare 2 files (one_trash.log / two_arch.log)
On the first file I've got like 1000 entries files name
Ex of one_trash.log :
one.tar
two.tar ..etc
On the second file I've got the repertories and the a lots of files name ~ almost 5000 entries
Ex of two_arch.log :
Rep1/rep2/rep3/one.tar
Rep10/rep21/rep32/two.tar ..etc
Here is my problem :
I need to create a file (ex match.log) that will contain all entries found on the one_trash.log that match with the two_arch.log. This file must contain the repertories and the file name
ex : Rep1/rep2/rep3/one.tar
I need this to see if the file name given on the first file one_trash.log exist on the two_arch.log and where this file is exactly stored.
here is an example of the two files :
one_trash.log
NCBO1T1_RTSTAT_20001227_20010103_S20010117
UK_IPSWITCHPRE_20031217_1452_1.TAR
UK_LONDONPSSPRE_20020327_0731_1.TAR
two_arch.log
OPE/NCB1/RTSTAT/NCBO1T1_RTSTAT_20010307_20010314_S20010328
OPE/NCB1/RTSTAT/NCBO1T1_RTSTAT_20010620_20010627_S20010704
I am sorry about my english.
Thanks a lot for your help. I lost on this. PLEASE