I have file like that
name is M1
address is ......
tall is .....
weight is .....
name is M2
address is ......
tall is .....
weight is .....
and same type of data for many persons (M3, M4,...). I want to use sed or awk to get the weight and tall for every person , so the output file which I want is like that
tall weight
.. ..
.. ..
.. ..
.. ..
.. ..
I used
sed -n -e ''2p,6p,10p'' data > output_file
However, the file is very big and I have to know the number of each line to print.
Thanks for time.

