HI I have one more brain twister for u all i have a 2 text file, i need to find the diff in row and to write in third file but under the same partitions. for eg:File :1 ==================== ============================== ======================== ============================== JOB STATUS - Activity ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_audt_trxn_refnc_uld.ksh ,20110317 ,Mar 17,04:41:49 ,Mar 17,04:43 ,SUCCESS d_isso_actvy_log_uld_cln.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_voy_svc_sesn_ctm.ksh , ,~~~ UPSTREAM PENDING/YET TO START ~~~ , , d_svc_evt_sumry_ld_ctm.ksh , ,~~~ UPSTREAM PENDING/YET TO START ~~~ , , ==================== ============================== ======================== ============================== JOB STATUS - Schedule ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_audt_trxn_refnc_uld.ksh ,20110317 ,Mar 17,04:41:49 ,Mar 17,04:43 ,SUCCESS d_isso_actvy_log_uld_cln.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_voy_svc_sesn_ctm.ksh , ,~~~ UPSTREAM PENDING/YET TO START ~~~ , , d_svc_evt_sumry_ld_ctm.ksh , ,~~~ UPSTREAM PENDING/YET TO START ~~~ , , ==================== ============================== ======================== ============================== JOB STATUS - Linkage ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_audt_trxn_refnc_uld.ksh ,20110317 ,Mar 17,04:41:49 ,Mar 17,04:43 ,SUCCESS d_isso_actvy_log_uld_cln.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_voy_svc_sesn_ctm.ksh , ,~~~ UPSTREAM PENDING/YET TO START ~~~ , , d_svc_evt_sumry_ld_ctm.ksh , ,~~~ UPSTREAM PENDING/YET TO START ~~~ , , #################################################################################################### #########################File :2 ==================== ============================== ======================== ============================== JOB STATUS - Activity ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_audt_trxn_refnc_uld.ksh ,20110317 ,Mar 17,04:41:49 ,Mar 17,04:43 ,SUCCESS d_isso_actvy_log_uld_cln.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_voy_svc_sesn_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_svc_evt_sumry_ld_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS ==================== ============================== ======================== ============================== JOB STATUS - Schedule ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_audt_trxn_refnc_uld.ksh ,20110317 ,Mar 17,04:41:49 ,Mar 17,04:43 ,SUCCESS d_isso_actvy_log_uld_cln.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_voy_svc_sesn_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_svc_evt_sumry_ld_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS ==================== ============================== ======================== ============================== JOB STATUS - Linkage ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_audt_trxn_refnc_uld.ksh ,20110317 ,Mar 17,04:41:49 ,Mar 17,04:43 ,SUCCESS d_isso_actvy_log_uld_cln.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_voy_svc_sesn_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_svc_evt_sumry_ld_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS #################################################################################################### #########################Output File: ==================== ============================== ======================== ============================== JOB STATUS - Activity ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_svc_sesn_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_svc_evt_sumry_ld_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS ==================== ============================== ======================== ============================== JOB STATUS - Schedule ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_svc_sesn_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_svc_evt_sumry_ld_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS ==================== ============================== ======================== ============================== JOB STATUS - Linkage ==================== ============================== ======================== ==============================JOB NAME ,ODATE ,START ,FINISH ,STATUS d_voy_svc_sesn_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS d_svc_evt_sumry_ld_ctm.ksh ,20110317 ,Mar 17,03:20:49 ,Mar 17,03:31 ,SUCCESS In the above 2 files the 3 & 4 row is different for all the 3 partition, so i want to write the 3 & 4 row frm file 2 to a new file. SO i need a script which find the non matching row between two file and to write in third file under the same partition.