paste - - - -, numbers of
- is equal the future column number. In my case, I have 55,000 future column, for me wont need to put 55,000
- what I will can use?
title1:A1 title2:A2 title3:A3 title4:A4 title5:A5 title1:B1 title2:B2 title3:B3 title4:B4 title5:B5 title1:C1 title2:C2 title3:C3 title4:C4 title5:C5 title1:D1 title2:D2 title3:D3 title4:D4 title5:D5
I want to transform this file (A) into following:
title1 A1 title1 B1 title1 C1 title1 D1 title2 A2 title2 B2 title2 C2 title2 D2 title3 A3 title3 B3 title3 C3 title3 D3 title4 A4 title4 B4 title4 C4 title4 D4 title5 A5 title5 B5 title5 C5 title5 D5
For this, I used :
$ sed 's/:/ /; /^$/d' sample.txt \ | sort | paste - - - - -
But in my file, I will have a big column number: 55,000 or 400 column.
What is the other form to replace the