bash - Select unique or distinct values from a list in UNIX shell script - Stack Overflow
You might want to look at the uniq and sort applications../yourscript.ksh | sort | uniq (FYI, yes, the sort is necessary in this command line, uniq only strips duplicate lines that are immediately after each other) EDIT: Contrary to what has been posted b...