Skip to content
Advertisement

In bash how to move row field to column in a text file

I have a .txt file with this record:

JavaScript

I would like to convert them like that:

JavaScript

I have tried something like:

JavaScript

or like

JavaScript

but i can’t get it to work

I would like the values to be transposed and that each tuple of values associated with a specific field is aligned with the others

Any suggestions?

Thank you in advance

Advertisement

Answer

I have downloaded your bigger sample file. And here is what I have come up with:

JavaScript

Code Demo

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement