At the Linux/Unix command line, I want to turn this:
A B C A B C . . .
A,B,C A,B,C ...
Is there a simple built-in command to do this, or does this require diving into Awk, Perl, etc.?
Don't know such built-in. Using
That is horrible, surely something like
would do the same thing?
So for e.g. to join lines of the file *file_lines* use
Here is a solution in python:
In your case you can use the function like this: