On Wed, Nov 20, 2002 at 06:25:24PM +0000, Angus Leeming wrote: > > My question: is "sort -u" standard, or should I pipe the results of > "sort" to "uniq"?
An elderly copy of "Unix in a Nutshell" lists "-u" as an option to "sort". The info-page for GNU-sort does not list "-u" as one of the options that behaves differently under BSD or in non-POSIX implementations. I'd guess, therefore, that "sort -u" is indeed portable. -- John Weiss