04-20-2009
738,
7
Join Date: Oct 2007
Last Activity: 21 August 2013, 5:20 AM EDT
Location: Bangalore
Posts: 738
Thanks Given: 0
Thanked 7 Times in 7 Posts
pass the output of ur original script in the following awk using a pipe
awk '$0 ~ /::/{str=str " " $0;next}{key=$0;a=split(str,srr," ");if(a>=1){for (i in srr)printf("%s|%s\n",srr[i],key);str="";next}}'
eg, originalscript | the awk script above( or implement it somewhere)
cheers,
Devaraj Takhellambam