Hi,
I am trying to extract all combined words starting with tbf0_ ( for example, tbf0_thrd_pty_grp_exclsns)from a file as following.
CETP_GExRpt:77:# tbf0_thrd_pty_grp_exclsns
CETP_GExRpt:100:FROM tbf0_thrd_pty_grp_exclsns
CETP_PatEdUpd:166: DELETE from tbf0_drug_ped_ptrn
CETP_PatEdUpd:183: UPDATE tbf0_drug_ped_ptrn
CETP_PatEdUpd:203: DELETE FROM tbf0_drug_ped_txt
CETP_PatEdUpd:220: UPDATE tbf0_drug_ped_txt
CETP_PatEdUpd:239: DELETE FROM tbf0_drug_ped_txt_cd
CETP_PatEdUpd:257: UPDATE tbf0_drug_ped_txt_cd
CETP_PatEdUpd:274:update tbf0_drug_ped_txt
CETP_PatEdUpd:295:update tbf0_drug_ped_txt
CETP_StFormUpd:82:#Add new states to tbf0_medicaid_st_form.
adr7.ctl:4:INTO TABLE TBF0_DRUG_COST
cardinal.ctl:4:INTO TABLE TBF0_DRUG_COST
From the above input file, I need
tbf0_thrd_pty_grp_exclsns,
tbf0_drug_ped_txt_cd,
tbf0_drug_ped_txt, etc
to appear in my output only once ( no duplicate). Can anyone give me some hint. Thanks a lot.
Michael
I am trying to extract all combined words starting with tbf0_ ( for example, tbf0_thrd_pty_grp_exclsns)from a file as following.
CETP_GExRpt:77:# tbf0_thrd_pty_grp_exclsns
CETP_GExRpt:100:FROM tbf0_thrd_pty_grp_exclsns
CETP_PatEdUpd:166: DELETE from tbf0_drug_ped_ptrn
CETP_PatEdUpd:183: UPDATE tbf0_drug_ped_ptrn
CETP_PatEdUpd:203: DELETE FROM tbf0_drug_ped_txt
CETP_PatEdUpd:220: UPDATE tbf0_drug_ped_txt
CETP_PatEdUpd:239: DELETE FROM tbf0_drug_ped_txt_cd
CETP_PatEdUpd:257: UPDATE tbf0_drug_ped_txt_cd
CETP_PatEdUpd:274:update tbf0_drug_ped_txt
CETP_PatEdUpd:295:update tbf0_drug_ped_txt
CETP_StFormUpd:82:#Add new states to tbf0_medicaid_st_form.
adr7.ctl:4:INTO TABLE TBF0_DRUG_COST
cardinal.ctl:4:INTO TABLE TBF0_DRUG_COST
From the above input file, I need
tbf0_thrd_pty_grp_exclsns,
tbf0_drug_ped_txt_cd,
tbf0_drug_ped_txt, etc
to appear in my output only once ( no duplicate). Can anyone give me some hint. Thanks a lot.
Michael