Tag Archives: JKL

How to append a string by comparing another string?

By jagdishrout

Hi ,
I have one file like

BUD,BDL BUDCAR
BUD,BDL BUDLAMP
ABC,CDF,KLT ABISKAR
ABC,CDF,KLT CORNEL
ABC,CDF,KLT KANNAD
JKL,HNM,KTY,KJY JAGAN
JKL,HNM,KTY,KJY HOUSE
JKL,HNM,KTY,KJY KATAK
JKL,HNM,KTY,KJY KOLKA

The o/p should be like

BUD,BDL BUDCAR,BUDLAMP
ABC,CDF,KLT ABISKAR,CORNEL,KANNAD
JKL,HNM,KTY,KJY JAGAN,HOUSE,KATAK,KOLKA

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums