Re: How to compile a list of unique words in a file?

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Austin Godber
Dato:  
Til: plug-discuss
Emne: Re: How to compile a list of unique words in a file?
Josef Lowder wrote:
> On a previous *nix system, I had a little shell script named 'unique'
> (contents shown below the line) that would compile a list of all the
> unique words in a named text file. But when I tried to use it on my
> current Linux system today, I discovered that I do not have 'deroff'
> which is required for 'unique' to work.


does your machine have the command 'uniq'

> man uniq


NAME
        uniq - remove duplicate lines from a sorted file


SYNOPSIS
        uniq [OPTION]... [INPUT [OUTPUT]]


DESCRIPTION
        Discard  all but one of successive identical lines from INPUT (or
        standard input), writing to OUTPUT (or standard output).
--snip--
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss