Catching up on News (toolsmith's solution)
Brad Templeton
brad at looking.on.ca
Wed Sep 13 10:19:14 AEST 1989
Actually, you might want to check out our "mknewsrc" program. It's in
my newsclip directory (~bstempleton/clip) on watmath. It will create
a .newsrc for you that has every current article unread, but it has a
"p=" option to specify a percentage.
mknewsrc +n p=100
- outputs a .newsrc with the same groups as your .newsrc
with 100% of articles unread
mknewsrc +n p=0
- does what you want, with all article marked read
mknewsrc +n p=10
- gives you the last 10% of articles in each group
Skip the +n and it gives you all groups in the active file.
Provide patterns and you will only get groups that match the
regular expressions.
output is to stdout. Wiht +n it's probably not safe to write to your
.newsrc directly.
--
Brad Templeton, Looking Glass Software Ltd. -- Waterloo, Ontario 519/884-7473
More information about the Comp.unix
mailing list