I'm new to Tcl and UNIX programming.
The following command works on the UNIX command-lines, but doesn't work in a Tcl script.
$ sort -b -k8 abc.txt | awk '!a[$1]++'
error out for 8 (-k8) and 1($1) is not variable
I'm trying to sort on Column 8 first and then pick only unique data on column 1.
I'm also trying to save data into a file.