1

Complex transpose awk script

view story
linux-howto

http://www.unix.com – Hello to all in forum, Maybe an awk expert could help me with this complex task for me. I have the input shown below and I would like to get the output as follow: - I would like the output separated by commas. - The header is fixed and will be the same always. - For the lines containing OCTDP, TCTDP and GPRSTDP I would like to join their values separated by "|", so they joined in the output will represent a single field (I've highlighted for best understanding) - Each value below " CAMEL SUBSCRIPTION OPTIONS" would go in different fields in the output. - When any value (HowTos)