How do I format the output of cut to the following format?

last part of the command:

| cut -d' ' -f3



required format:


I’m guessing echo (and sort?) is to be used in some way, but I can’t quite place my finger on it.

Asked By: kesarling He-Him


You need the following code:

| cut -d' ' -f3 | paste -sd ','
Answered By: Gilles Quénot
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.