regarding about printing row to column

Hello,
I got data like that,

[id]=111
A= alpha
B= 1
C= qq
D= 45
F= ss
G= 334
[id]=1234
A=
B= 2w
C=
D= 443
F=
G=
[id]=3434
A=
B= e3e
C=
D=
F= eww
G=
[id]=564
A= wsw
B=
C= sws
D= swsws
F=
G= dwd

I want to print this data into row like that

111      alpha  1    qq        45        ss                     334
1234            2w             443
3434            e3e                      ew
564      wsw         sws       swsws                            dwd

I mean first
1st row data in cursor postion 1
2nd row data in cursor postion 10
3rd row data in cursor postion 17
4th row data in cursor postion 22
5th row data in cursor postion 32
6th row data in cursor postion 42 etc

That will be great if someone can advice how to fix it.

Many thanks

# awk -F= 'NR==1{printf $2;next}/id/{printf "\n%s",$2;next}{printf "\t%s",$2}' f3
111      alpha   1       qq      45      ss      334
1234             2w              443
3434             e3e                     eww
564      wsw             sws     swsws           dwd

From here you have to fix the print format.

hello,

Many thanks for your reply, i have tested your code and the output look like the one you sent , but when i open with text editor the output is like below and not fix column and error when processing these data.

111     alpha     1         45         334
1234         2w         443        
3434         e3e             eww    
564     wsw         sws     swsws         dwd

any idea how to fix it and can you give idea for three attributes output with different cursor position (eg.%-9,%-16) like that

111      alpha           1
1234                     2w
3434                     e3e
564      wsw

Many thanks

What text editor ? What OS? :rolleyes:

cat  a | paste - - - - - - - | sed 's/[^=   ]*=//g'

Hello,
I am using microC text editor and using cygwin.

Thanks