I have 100 lines with 1 column. Data like this
line1  
line2  
line3  
.  
.  
.  
line100  
I want output like this
line1     line11     line21 ... line91  
line2     line12     line22 ... line92  
line2     line13     line23 ... line93  
line4     line14     line24 ... line94  
.  
.  
.  
line10    line20     line30 ... line100  
Does anyone help me how to do like this.
Thank you very much.
                        
Could you please try following awk too once.
Explanation: So here I have created a variable named col whose value is 10(which represents the number of column we wanted to print). Then I am creating an array named a whose index is FNR(current line's value) and value is the current line's value. Now in END block of awk I am starting a for loop which starts from a variable i's value from 1 to till col's value(so maximum till 10 in this case), then started a inner for loop which starts from variable j's value 0 to till value of FNR(which will be total number of lines in Input_file) and each time it gets incremented by value of 10. In side this inner for loop printing the value of array a[i+j], so it will be like a[1],a[11],a[21]..... etc etc Then second string I am printing is space between these array a's values and checking if it is last element please don't print the space then. Now in outer for loop printing null value which will print a new lines here.