[lsort -unique] is working to sort out duplicate names in the one line. But, if the loops encounter the same name in different line, its getting in the list. so the list still contains the duplicate names.
how to remove duplicate items from a list ? The list is receiving the input through a resultant loop. If i use "lsort -unique", it gives me for that particlur loop run. If the same item is repeated next time in the loop, its not taking. Can anyone suggest me something. I figured out "...
Hi, I am giving a file (in) as input and sorting out the desired matched pattern in a different file(out). Since I am getting the output in loop, I am unable to remove the duplicate item. set in [open filename_1 r] set data [read $in] close $in set data [split $data "\n"] foreach line $dat...