Sorting database text output
Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data.
In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list.
What is the fewest strokes you can do this in?
Sorting database text output
Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data.
In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list.
What is the fewest strokes you can do this in?
Output
1, 2, 3, 4, 8, 15, 18, 24, 25, 28, 32, 47, 49, 62, 65, 69, 76, 96, 99, 103, 107, 110, 153