How do I convert key value paired list into table with columns using AWK?
How do I convert key value paired list into table with columns using AWK? I need to convert a dataset from a key value paired list (informix dbaccess output) into a columned csv. I'm fairly certain this can be done easily with awk or sed. UPDATE The solution needs to be a single line response. I am using NSH (which is based on ZSH). So some of the typical "bashy" commands will not work. Here is my data sample set: part_no 100000001 date_part 2010-10-13 12:12:12 history_code ABCD user_id rsmith other_information note: Monday, December 10 pool_no 101011777 part_no 100000002 date_part 2010-10-21 12:12:12 history_code GHIJ user_id jsmith other_information pool_no 101011888 part_no 100000002 date_part 2010-10-27 12:12:12 history_code LMNO user_id fevers other_information [Mail] pool_no 101011999 part_no 100000003 date_p...
