Hi,
I would appreciate any help from you guys, I am a newbie to tcl
I am to print out few list which I am retrieving from different loops,
abc 1 3 4 xyz...
abc 2 4 5 sadas...
abc
abc.bcd
abc.bcd
abc
abc
abc
abc.xyz
....
How can I sort these lines such that I get
abc 1 3 4 xyz...
abc 2 4 5 sadas...
abc
abc
abc
abc
abc.bcd
abc.bcd
abc.xyz
Have tried doing lsort and other things, but I am not sure if that is the way.
I am fine with saving them in file and doing file operation, but would be preferable if I do that on tcl interface.
I would appreciate any help from you guys, I am a newbie to tcl
I am to print out few list which I am retrieving from different loops,
abc 1 3 4 xyz...
abc 2 4 5 sadas...
abc
abc.bcd
abc.bcd
abc
abc
abc
abc.xyz
....
How can I sort these lines such that I get
abc 1 3 4 xyz...
abc 2 4 5 sadas...
abc
abc
abc
abc
abc.bcd
abc.bcd
abc.xyz
Have tried doing lsort and other things, but I am not sure if that is the way.
I am fine with saving them in file and doing file operation, but would be preferable if I do that on tcl interface.