Hi,
using awk /sed, I need to sort out the input file.
here is the example
input file===
Name= shashi | country= india | region = asia | dept= ww
Name= jon | region = asia | dept= xx
Name=sam | dept= ww
Name= anthony | country=england | dept= xx
Name= sumo | country= china
output should be=====>
Name= shashi | country= india | region = asia | dept= ww
Name= jon | country= 0 | region = asia | dept= xx
Name=sam | country= 0 | region = 0 |dept= ww
Name= anthony | country=england |region = 0| dept= xx
Name= sumo | country= china |region = 0| dept= 0
thaqnks in advance..