sed woes
Gabriel Gunderson
gabe at gundy.org
Thu Dec 14 11:34:40 MST 2006
On Thu, 2006-12-14 at 10:58 -0700, Jeff Schroeder wrote:
> # sort hosts.deny | uniq > hosts.deny.new
>
> I typically run 'sort' before 'uniq' because it seems that uniq looks
> for repeated lines, and if you happen to have the same line in
> different places in the file it may not catch it as a duplicate.
You should consider using `sort -u`
>From the man page:
-u, --unique
with -c, check for strict ordering; without -c,
output only the first of an equal run
More information about the PLUG
mailing list