Perl/awk/sed Program to convert rows to columns between identifiers

Monday, June 30, 2014

- My Input File Format:


.set ABC


col2=123


col3=xyz


.set prs


col2=456


col3=kda


My output format:


.set ABC~col2=123~col3=xyz


.set prs~col2=456~col3=kda


My file is very huge, so pls recommend perl/awk/sed code which peforms better.


Thanks







http://ift.tt/1qdRJpH