Skip to content
Advertisement

Bash text multi line into one line with spec. data

I got something like this

JavaScript

And I need this

JavaScript

I am new with the bash and I dont know how can I get this Thanks for you help!

EDIT

JavaScript

Advertisement

Answer

Use sed and paste, as in

JavaScript

Of course, if you have multiple records/albums/tracks, or if the field names may change, there are better solutions.

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