Hello friends, could you help me about problem with my data lines. I suppose a simple awk code may help me.
I have following data lines: (first line including 3 numbers and then a matrices of 4x10)
How can I convert this format to
first line sum of 3 numbers at the first line ---> 549
second line is converted to 1x40 ----> 1 A B 4 5 6 7 8 9 ..... Z P R
Could anyone help ?
thanks
I have following data lines: (first line including 3 numbers and then a matrices of 4x10)
Code:
500 40 9
1 A B 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 Z P R
How can I convert this format to
first line sum of 3 numbers at the first line ---> 549
second line is converted to 1x40 ----> 1 A B 4 5 6 7 8 9 ..... Z P R
Could anyone help ?
thanks