Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* sort bug?
@ 1994-07-20 23:41 Vicki Jordan
  1994-07-21 15:52 ` Peter da Silva
  1994-07-22 14:43 ` Frank Wortner
  0 siblings, 2 replies; 5+ messages in thread
From: Vicki Jordan @ 1994-07-20 23:41 UTC (permalink / raw)


One of the daily news reports performs some operations on the log file
such as:

egrep unapproved $sus | sed 's/.*`\(.*\)'"'"'.*/\1/' | sort |
        uniq -c | sort -nr | sed 5q >$tmp
egrep 'no subscribed' $sus | sed 's/.*`\(.*\)'"'"'.*/\1/' | sort |
        uniq -c | sort -nr | sed 5q >$tmp

When the search is empty, sort generates a newline :
sort: Warning: A newline character was added to the end of the input.
sort: Warning: A newline character was added to the end of the input.

This results in a fairly stupid looking report...

top five supposedly-moderated groups with unmoderated postings:
   1 "
leading five unsubscribed newsgroups:
   1 "

Question:
Is this a bug or a feature?
-- 
Vicki Jordan                               V.Jordan@latrobe.edu.au
Computing Services                         phone: +61 03 479 1500
La Trobe University                          fax: +61 03 479 1999
Bundoora Vic 3083 Australia


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1994-07-23  0:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-20 23:41 sort bug? Vicki Jordan
1994-07-21 15:52 ` Peter da Silva
1994-07-22 14:43 ` Frank Wortner
1994-07-22 15:32   ` Steve Morin
1994-07-23  0:37     ` Jeffrey Mogul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox