Hi every one,
I am trying to organise an input text file like:
input
1 2 3 4 5
6 7 8
9 10
11 12 13 14 15
16 17 18
19 20
into an output as following:
output file
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
In fact, the output will have 10 fields and two rows. I have tried the following AWK:
awk ' NR%3==0 {print (tr '\n ' ' )}' input>output
but it does not work!
Any help would be very much appreciated.