Neat little .newsrc fixer-upper.

John F. Haugh II jfh at rpp386.UUCP
Thu Apr 28 16:20:47 AEST 1988


In article <2083 at quacky.mips.COM> dce at quacky.UUCP (David Elliott) writes:
>In article <3931 at killer.UUCP> jfh at killer.UUCP (The Beach Bum) writes:
>>This little toy takes your (possibly uneditable) .newsrc and removes
>>all the garbage between 1 and the last article you read.
>
>Why write a C program when a standard Unix utility can do the trick?
>

here's why.  this is the vmstat output for my home machine.  the most
notable number is forks.  in general i avoid unix utilities once i
understand the problem.  fixrc is less grief on the machine.

  407925 page cache hits
  205559 page cache misses
     408 procs swapped in
     410 procs swapped out
  205559 filesystem page reads
    8299 swap area page reads
    6897 swap area page writes
  163937 pages reclaimed from free list
 1170660 pages shared due to copy-on-write fork
   10621 pages shared due to cache hits
  958036 shared pages copied
75682332 page faults
13423894 cpu context switches
121472501 (non clock) device interrupts
 3174741 traps
76000468 system calls
  137024 forks

- john.
-- 
John F. Haugh II                 | "You see, I want a lot.  Perhaps I want every
River Parishes Programming       | -thing.  The darkness that comes with every
UUCP:   ihnp4!killer!rpp386!jfh  | infinite fall and the shivering blaze of
DOMAIN: jfh at rpp386               | every step up ..." -- Rainer Maria Rilke



More information about the Comp.unix.questions mailing list