sed command

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.

13 views without reply :confused::confused:

Hi again
I have this file
abd ..............123
sda...............234
dff................223

t1 t2 t3 t4 t5 t6 t7 t8 10
1 3 4 5 2 4 5 6 3
23 2 3 2 1 3 4 1 3

sdf.................123
efr..................223
dghf..............323

t1 t2 t3 t4 t5 t6 t7 t8 10
22 3 4 2 5 3 2 1 3
3 2 2 4 5 6 5 4 6

I want to print the numbers under the column t6, so output file is
4
3
3
6
Please help.
Thanks for advance.:slight_smile:

I think the second post is clearer. Try this:

awk '/^[0-9][0-9]* / { print $6 }'