At the Linux/Unix command line, I want to turn this:
A
B
C
A
B
C
.
.
.
into this:
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.?
|
At the Linux/Unix command line, I want to turn this:
into this:
Is there a simple built-in command to do this, or does this require diving into Awk, Perl, etc.? | |||
|
feedback
|
|
Don't know such built-in. Using
| |||
|
feedback
|
|
That is horrible, surely something like
would do the same thing? So for e.g. to join lines of the file *file_lines* use
| |||||||
feedback
|