[Klug-general] When it might be easier to translate
Paul Littlefield
info at paully.co.uk
Thu Sep 30 12:15:54 UTC 2010
On 30/09/10 13:03, Paul Littlefield wrote:
> I am on the case now... love this kinda stuff.
Sorry, I have completely misread BOTH your posts...
:-D
...so you did actually succeed then with what you did then!
I have just tweaked the last comma...
$ cat list.txt
project1,fredsproject,thatproject,anotherproject
$ cat list.txt | tr ',' '\n' | sort | tr '\n' ',' | sed 's/,$/\n/' > list_sorted.txt
$ cat list_sorted.txt
anotherproject,fredsproject,project1,thatproject
Paully
More information about the Kent
mailing list