Seems its working. But still i'll paste what is needed
/home/odyssey/f091018>cat set1
/vobs/odyssey/sm/sybase/ddl/ods/SM_CFSCASHFLOWONHOLD.trg@@/main/3
/vobs/odyssey/sm/sybase/ddl/ods/SM_CFSCASHFLOW.trg@@/main/3
/vobs/odyssey/sm/sybase/ddl/ods/SM_CFSDIARY.trg@@/main/4
/vobs/odyssey/sm/sybase/ddl/ods/SM_SMVALIDCASHFLOW.trg@@/main/5
/home/odyssey/f091018>cat set2
/vobs/odyssey/sm/sybase/ddl/ods/SM_CFSCASHFLOWONHOLD.trg@@/main/13
/vobs/odyssey/sm/sybase/ddl/ods/SM_CFSCASHFLOW.trg@@/main/23
/vobs/odyssey/sm/sybase/ddl/ods/SM_CFSDIARY.trg@@/main/4
/vobs/odyssey/sm/sybase/ddl/ods/SM_SMVALIDCASHFLOW.trg@@/main/15
The requirement is all the files in Set 1 should have last field bigger than the same file in set 2 (if present .. ). If set2 version is higher than we want to list that file name in the o/p from set 1.
Quote:
Originally Posted by
radoulov
Try swapping the input files.
But will the usage remains the same? i.e ./script.awk set2 set1 ????