Hi,
I have a situation where ihave to group the data and put it in the third file.
for eg:
a.txt
Name:[John]
Age:[26]
Sex:[M]
Name:[Fred]
Age:[28]
Sex:[M]
For the file above i need a output as
b.txt
John-26-M
Fred-28-M
the problem is when i use awk i dont know how to select '[' as delimter and in the output it is not delimiting according to John-26-M format using OFS. Any approach is ok other than awk.