🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21866

Re: A history file question.

#21866
From: Anthony Talltree
Date: Thu, 25 Sep 1997 00:00
29 lines
983 bytes
>Once you have the history file sorted, the following awk will help:

Um, why not just use uniq(1)?

>BEGIN {
>        LINE = "";
>}
>{
>        if (LINE != $1)  {
>                print $0
>                LINE = $1
>        } else {
>                print $0 >> "history.dups"
>        }
>}












Technical Details
Message-ID: <60f24a$2op@lovecraft.nwnet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5vvb4o$2kl$1@ccnet3.ccnet.com> <95DC289B9E7188D2.018E6D44DD568BAA.7BA4E92FC2970B0B@library-proxy.airnews.net>

Show Full Headers
Complete Article Headers
Message-ID: <60f24a$2op@lovecraft.nwnet.net>
Subject: Re: A history file question.
Date: Thu, 25 Sep 1997 00:00:00 +0000
From: aad@nwnet.net (Anthony Talltree)
References: <5vvb4o$2kl$1@ccnet3.ccnet.com> <95DC289B9E7188D2.018E6D44DD568BAA.7BA4E92FC2970B0B@library-proxy.airnews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 275581928
Organization: NorthWestNet, Bellevue, WA, USA
Reply-To: aad@nwnet.net
Newsgroups: news.software.nntp