[Klug-general] When it might be easier to translate

Paul Littlefield info at paully.co.uk
Thu Sep 30 10:02:41 UTC 2010


On 30/09/10 10:56, David Halliday wrote:
> I just had an interesting thing to solve. I had a comma separated list of text strings that I wanted to sort alphabetically (I'm sure someone is going to point out a better solution for this now).

Do you want to sort on a particular column?

http://ss64.com/bash/sort.html

To sort the same file on the 4th column and supress duplicates: (should return 3 rows)
$ sort -u -k 4,4 people.txt> sorted3.txt

Paully



More information about the Kent mailing list