Re: sort --unique
On Thu, May 01, 2003 at 08:38:02PM -0400, Bob Paige wrote:
> I have a list of items in a text file that I want sorted and
> 'uniquified'. In a previous install, the version of sort had an option
> '--unique' that would output a unique list. The version I'm running now
> doesn't have that. (Mine is from GNU textutils 2.0)
In that version of sort, the option was called -u. (It still is in newer
versions, but there the long variant is available too.)
> Where can I either get a different version of 'sort', or otherwise
> 'uniquifiy' my text file?
You can also use the 'uniq' tool on sorted data.
Colin Watson [firstname.lastname@example.org]