Thread View: news.software.readers
9 messages
9 total messages
Started by Paul Beker
Tue, 24 Sep 1991 21:10
Wanted: SIMPLE .newsrc sorter
Author: Paul Beker
Date: Tue, 24 Sep 1991 21:10
Date: Tue, 24 Sep 1991 21:10
13 lines
1064 bytes
1064 bytes
I am looking for some simple way to sort my .newsrc, without having to
change readers or learn all about GNU, etc. The only thing I really
want to do is to sort it in the following way:
1) All git.* (local) groups first, alphabetized.
2) All remaining groups in my .newsrc, alphabetized.
Thanks!
Paul Beker
--
Paul Beker Internet: gt4824a@prism.gatech.edu
24838 Georgia Tech Station uucp: ..!{world}!gatech!prism!gt4824a
Atlanta, GA 30332
Re: Wanted: SIMPLE .newsrc sorter
Author: Gym Z. Quirk
Date: Tue, 24 Sep 1991 21:35
Date: Tue, 24 Sep 1991 21:35
32 lines
1850 bytes
1850 bytes
In article <36690@hydra.gatech.EDU> gt4824a@prism.gatech.EDU (Paul Beker) writes:
>I am looking for some simple way to sort my .newsrc, without having to
>change readers or learn all about GNU, etc. The only thing I really
>want to do is to sort it in the following way:
>
> 1) All git.* (local) groups first, alphabetized.
> 2) All remaining groups in my .newsrc, alphabetized.
I think the following Unix commands should do the trick...
%sed '/git/ r git' .newsrc > others
%sort others -o others
(I'm not quite sure about the syntax of this one. Look it up on
man...;-)
%cat others >> git
%mv git .newsrc
(Depending if you have 'mv' aliased to 'mv -i', you may have to
comfirm the removal of the old .newsrc)
%rm others
(Again, if you have 'rm' aliased to 'rm -i', you will have to comfirm
the deletion.)
If I have made any errors, I'm sure someone will point them
out...;-)
>Paul Beker Internet: gt4824a@prism.gatech.edu
--
Capt. Gym Z. Quirk (Known to some as Taki Kogoma) tkogoma@triton.unm.edu
Veteran of the "Grand sf-lovers fiasco" of July '91-???.
Secret Master of rec.arts.startrek
-= Insert witty quote here =-
Re: Wanted: SIMPLE .newsrc sorter
Author: Paul Beker
Date: Tue, 24 Sep 1991 23:56
Date: Tue, 24 Sep 1991 23:56
35 lines
1951 bytes
1951 bytes
In article <=2jcwjp@lynx.unm.edu> tkogoma@triton.unm.edu (Gym Z. Quirk) writes:
>In article <36690@hydra.gatech.EDU> gt4824a@prism.gatech.EDU (Paul Beker) writes:
>>I am looking for some simple way to sort my .newsrc, without having to
>>change readers or learn all about GNU, etc. The only thing I really
>>want to do is to sort it in the following way:
>>
>> 1) All git.* (local) groups first, alphabetized.
>> 2) All remaining groups in my .newsrc, alphabetized.
>
>I think the following Unix commands should do the trick...
>
>%sed '/git/ r git' .newsrc > others
>%sort others -o others
[A few more commands that did not seem to want to work for me...]
Anyways, after giving it a bit more though, I realized that I could do
what I needed with some very simple Unix commands:
grep -i git .newsrc > git
grep -iv git .newsrc > others
sort git -o git
sort others -o others
cat others >> git
mv git .newsrc
rm others
Ah well, maybe someone will get some use out of this... sorry for the wasted
bandwidth!
Paul Beker
--
Paul Beker Internet: gt4824a@prism.gatech.edu
24838 Georgia Tech Station uucp: ..!{world}!gatech!prism!gt4824a
Atlanta, GA 30332
Re: Wanted: SIMPLE .newsrc sorter
Author: Dave Meyer
Date: Wed, 25 Sep 1991 00:38
Date: Wed, 25 Sep 1991 00:38
17 lines
1560 bytes
1560 bytes
In article <36690@hydra.gatech.EDU> gt4824a@prism.gatech.EDU (Paul Beker) writes: >I am looking for some simple way to sort my .newsrc, without having to >change readers or learn all about GNU, etc. The only thing I really >want to do is to sort it in the following way: > > 1) All git.* (local) groups first, alphabetized. > 2) All remaining groups in my .newsrc, alphabetized. mv .newsrc old.newsrc (grep ^git old.newsrc | sort ; grep -v ^git old.newsrc | sort) > .newsrc is the most succinct way of doing this (that I know). It's kind of sloppy, but it will certainly do the job. -- David M. Meyer | dmm0t@virginia.edu Department of Mechanical & Aerospace Engineering | (804) 924-7926 University of Virginia |
Re: Wanted: SIMPLE .newsrc sorter
Author: Ger Timmens
Date: Wed, 25 Sep 1991 10:05
Date: Wed, 25 Sep 1991 10:05
65 lines
2267 bytes
2267 bytes
gt4824a@prism.gatech.EDU (Paul Beker) writes: >I am looking for some simple way to sort my .newsrc, without having to >change readers or learn all about GNU, etc. The only thing I really >want to do is to sort it in the following way: > 1) All git.* (local) groups first, alphabetized. > 2) All remaining groups in my .newsrc, alphabetized. Here's a simple sh prog. I wrote, Have fun, Ger ------------------- Cut here ----------------------------------------- #! /bin/sh # # NAME # newssort # # DESCRIPTION # newssort sorts the news resource file in the users home # directory. # Order of appearance of newsgroups: # # Local newsgroups (sorted, even if not selected) # # Selected newsgroups (sorted, read articles present) # # Selected newsgroups (sorted, no read articles or empty) # # Unselected newsgroups (sorted, read articles present) # # Unselected newsgroups (sorted, no read articles or empty) # # # AUTHOR # Ger Timmens # # DATE # 25 September 1991 # NEWSRC=$HOME/.newsrc LOCAL=tnofel LOCAL_FILE=$NEWSRC.local SELECTED_FILE=$NEWSRC.selected UNSELECTED_FILE=$NEWSRC.unselected egrep -v '^$' $NEWSRC > $NEWSRC.bak fgrep -i $LOCAL $NEWSRC.bak | sort -o $LOCAL_FILE fgrep -i -v $LOCAL $NEWSRC.bak | fgrep -i -v ! | sort -o $SELECTED_FILE fgrep -i -v $LOCAL $NEWSRC.bak | fgrep -i -v : | sort -o $UNSELECTED_FILE cat $LOCAL_FILE > $NEWSRC echo >> $NEWSRC egrep -v ':$' $SELECTED_FILE >> $NEWSRC echo >> $NEWSRC egrep ':$' $SELECTED_FILE >> $NEWSRC echo >> $NEWSRC egrep -v '!$' $UNSELECTED_FILE >> $NEWSRC echo >> $NEWSRC egrep '!$' $UNSELECTED_FILE >> $NEWSRC
Re: Wanted: SIMPLE .newsrc sorter
Author: Walter Moore
Date: Wed, 25 Sep 1991 13:04
Date: Wed, 25 Sep 1991 13:04
23 lines
1441 bytes
1441 bytes
In article <36690@hydra.gatech.EDU> gt4824a@prism.gatech.EDU (Paul Beker) writes:
>I am looking for some simple way to sort my .newsrc, without having to
>change readers or learn all about GNU, etc. The only thing I really
>want to do is to sort it in the following way:
>
> 1) All git.* (local) groups first, alphabetized.
> 2) All remaining groups in my .newsrc, alphabetized.
>
>Thanks!
>Paul Beker
I would suggest the following on a Unix system:
% sed -n '/^git\./p' .newsrc | sort > git.grps
% sed '/^git\./d' .newsrc | sort > other.grps
% mv git.grps .newsrc
% cat other.grps >> .newsrc
Hope this helps,
--
TTYL & TANSTAAFL ---------------- Walter Moore
Internet: zwbm07@hou.amoco.com
Tres Ultimo Newsrc Sorter (was Re: Wanted: SIMPLE .newsrc sorter)
Author: Christopher Davis
Date: Wed, 25 Sep 1991 13:41
Date: Wed, 25 Sep 1991 13:41
389 lines
13165 bytes
13165 bytes
Unshar and enjoy. Includes a README file [and requires perl 3.0.44 or later]
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: README fixnewsrc sample.news.biblio sample.news.favorite
# sample.news.new-list
# Wrapped by ckd@eff on Thu Aug 8 17:00:22 1991
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f README -a "${1}" != "-c" ; then
echo shar: Will not over-write existing file \"README\"
else
echo shar: Extracting \"README\" \(1594 characters\)
sed "s/^X//" >README <<'END_OF_README'
XThis is fixnewsrc 1.4 - a perl program to manage the order of your
X.newsrc file. Now, admittedly, there are some newsreaders which will do
Xthis, but how many of them support all of perl's power in expressions?
X
X(After all, rn.pl isn't here yet.)
X
XChanges in the program are currently documented within the source code;
XI will probably move it to a ChangeLog with the next release.
X
XUsage notes are within the program; run 'fixnewsrc -help'.
X
XFuture plans for version 1.5 (which may be 2.0) include:
X
X - support for a .news.dislikes file, to put your most-hated groups at
X the bottom. This would be useful for dropping groups like
X vmsnet.networks.tcp-ip.* to the bottom while selecting all other
X tcp-ip groups, for example. Suggested by Ed Vielmetti.
X
X - new (and hopefully faster) syntax options in preference files:
X ^comp # will equal comp.all
X .sources # comp.sources.misc, alt.sources, etc
X These would match only *whole name segments*, but should be faster
X than the "old" (/pat/) matches. The price will be vastly larger
X amounts of RAM used.
X
XMany thanks to Dan Wallach <dwallach@soda.berkeley.edu> for the original
Xcode, Tom Christensen <tchrist@convex.com> and Liam Quin for their
Xassistance with Dan's versions, Ed Vielmetti <emv@msen.com> for many
Xfine suggestions, Randal L. Schwartz <merlyn@iwarp.intel.com> and Larry
XWall <lwall@netlabs.com> for the Camel Book, Larry Wall and the
Xcomp.lang.perl gang for perl, Masanobu Umeda for GNUS, and Helen Rose
Xfor her moral support, assistance, and help. If I have forgotten anyone
Xabove, I apologize.
X
END_OF_README
if test 1594 -ne `wc -c <README`; then
echo shar: \"README\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f fixnewsrc -a "${1}" != "-c" ; then
echo shar: Will not over-write existing file \"fixnewsrc\"
else
echo shar: Extracting \"fixnewsrc\" \(5776 characters\)
sed "s/^X//" >fixnewsrc <<'END_OF_fixnewsrc'
X#!/usr/local/bin/perl -- # -*- Perl -*-
X
X# FixNewsrc
X# v1.4 by Chris Davis <ckd@eff.org>
X# based on V1.1 by Dan Wallach <dwallach@soda.berkeley.edu>
X
X# run "fixnewsrc -help" for documentation and usage notes,
X# see the sample files, look at README, or Use the Source, Luke.
X
X# New feature in 1.4
X#
X# cleaned up the eval in sub insert, it's now evaling the loop instead
X# of being within it. This optimizes (/pat/) perl patterns; it now runs in
X# much less time on my sample .news.favorite (with a 2500+ group .newsrc!)
X#
X#old: 44.0u 15.9s 1:10.66 84.9% 0+1080k 5+15io 0pf+0w
X#new: 12.4u 9.7s 0:27.94 79.7% 0+1012k 3+15io 0pf+0w
X# --ckd 91 Aug 09
X
X# New features in 1.3
X#
X# Cleaned up some messages to print the true filename.
X# added -s sortfile option (from Ed Vielmetti <emv@msen.com>)
X# Fixed an array-slice masquerading as a scalar...
X#
X# --ckd 91 Aug 08
X
X# New features in 1.2:
X#
X# Uses getopts.pl to allow the following new feature (so the help parsing
X# also changed)
X#
X# has -f file to allow using something other than $HOME/.newsrc.
X# (good for those GNUS users using .newsrc-nntpserver style files)
X# --ckd 91 Jul 16
X
X# New features in 1.1:
X#
X# handles arbitrary Perl patterns via eval (idea from Liam Quin's awk script)
X# handles stranger and more obscure error cases (happy, Tom? :-)
X
X# return true if it actually printed anything
Xsub counter {
X return 0 unless ((++$counter % 100) == 0);
X $prev_blurt = 0;
X print STDERR "$counter...";
X 1;
X}
X
Xsub tally_counter {
X print STDERR "$counter",(defined $verbosity)?" total\n\n":"\n";
X}
X
Xsub blurt {
X return unless $verbosity;
X print STDERR "\n" unless $prev_blurt;
X print STDERR @_;
X $prev_blurt = 1;
X}
X
Xsub insert {
X local($group) = split(/[:!]/, $_[0], 2);
X if(!defined $newsrc{$group}) {
X &blurt("Warning: $group not in $newsrc_file!\n")
X if !defined($inserted{$group});
X next;
X }
X
X &blurt(">> $_\n");
X &counter;
X push (@output, $newsrc{$group});
X $inserted{$group} = 1;
X delete $newsrc{$group};
X}
X
Xsub print_favorites {
X print STDERR "Parsing favorites: ";
X favorite: foreach(<FAVORITE>) {
X chop;
X s/\s*\#.*$//;
X next if /^$/;
X
X if(/\(/) {
X &blurt("Matching: $_\n");
X $pattern = $_;
X eval <<END_OF_EVAL;
X foreach (\@newsrc) {
X if ($pattern) {
X &insert(\$_);
X }
X }
XEND_OF_EVAL
X &blurt("Match complete\n");
X next favorite;
X }
X &insert($_);
X }
X &tally_counter;
X}
X
X#if(@ARGV == 1 && $ARGV[0] eq "-v") {
X# # verbose mode on
X# $verbosity = 1;
X# shift;
X#}
Xrequire 'getopts.pl'; # and unfortunately require 3.0.44 or later
X&Getopts("h:s:f:v"); # help, sortlist (favorites), file, verbose
X
Xif (@ARGV || $opt_h) {
X print STDERR <<NO_MORE_HELP;
Xfixnewsrc 1.4 by Chris Davis <ckd@eff.org>
X based on fixnewsrc 1.1 by Dan Wallach <dwallach@soda.berkeley.edu>
X and patches by Ed Vielmetti<emv@msen.com>
XUsage: $0 [-v] [-f file] [-s favoritefile] [any other argument]
X -v == more verbose
X -f == use file instead of .newsrc
X -s == sort by this file instead of .news.favorite
X anything else == this help message
X
XThis program sorts your .newsrc, putting groups you read on top. In addition,
Xif you have a file in your home directory called .news.favorite, then the
Xlist of newsgroups in this file appear at the top of your .newsrc, so you
Xcan still read groups in your favorite order.
X
XPut any Perl expression you want to describe your group in parenthesis, and
Xthat's good, too. If it's not in parenthesis, it's considered to be exact.
XRemember: you're matching on :'s and !'s, too.
X
X# Example:
Xrec.humor.funny # comments, and blank lines are cool
Xalt.fan.warlord
Xucb.computing.announce
Xcomp.lang.perl
X(/comp\\.text\\..*/ && (!/comp\\.text\\.tex/)) # comp.text everything but tex
X# Here's a more complicated one which matches "nas" and "nas.msgs"
X# but not "nasa.nudge" or "arc.nasamail.arc"
X(/^nas\\..*/ || /^nas[:!]/)
XNO_MORE_HELP
X exit 0;
X}
X
X$verbosity = $opt_v;
X$newsrc_file = $opt_f || "$ENV{HOME}/.newsrc";
X$favorite_file = $opt_s || "$ENV{HOME}/.news.favorite";
Xdie "No .newsrc file! Crapped out at" unless -e "$newsrc_file";
Xopen(NEWSRC, "<$newsrc_file") ||
X die "Can't open $newsrc_file: $!, crapped out at";
X
X# we want to keep this associative array around for printing favorites
X# so if we've already printed something, we just delete it from the
X# associative array, and go on.
X
Xprint STDERR "Reading groups: ";
X$counter = 0;
Xforeach(<NEWSRC>) {
X chop;
X next if /^$/;
X &counter;
X $fullentry = $_;
X s/[:!].*$//;
X &blurt("Warning: $_ appears more than once!\n") if defined($newsrc{$_});
X $newsrc{$_} = $fullentry;
X}
X&tally_counter;
X
Xprint STDERR "Sorting..." if $verbosity;
X@newsrc = sort values %newsrc;
Xprint STDERR "Done\n" if $verbosity;
X# output time... clear the counter and let's deal with the favorites file
X$counter = 0;
X
Xif (open(FAVORITE, $favorite_file)) {
X &print_favorites;
X} else {
X print STDERR "Couldn't find $favorite_file. Just sorting $newsrc_file.\n";
X}
X
X# yeah, we have to do it twice... It's good enough...
Xundef @newsrc;
Xprint STDERR "Sorting again..." if $verbosity;
X@newsrc = sort values %newsrc;
Xprint STDERR "Done\n" if $verbosity;
Xprint STDERR "Generating output: ";
X
X#
X# I could just grep through the array for :'s then !'s, but that requies
X# making two passes. This works in one pass.
X#
Xforeach(@newsrc) {
X &counter;
X if(/:/) {
X push (@output, $_);
X } elsif (/!/) {
X push (@output2, $_);
X }
X}
X&tally_counter;
X
Xclose(NEWSRC);
Xrename($newsrc_file,"${newsrc_file}.bak") ||
X die "Can't rename ${newsrc_file}: $!, crapped out at";
X
Xopen(NEWSRC, ">$newsrc_file") || die "Can't open $newsrc_file for writing: $!, crapped out at";
X
X$\ = $, = "\n";
Xprint NEWSRC @output, @output2;
X
X
X
END_OF_fixnewsrc
if test 5776 -ne `wc -c <fixnewsrc`; then
echo shar: \"fixnewsrc\" unpacked with wrong size!
fi
chmod +x fixnewsrc
# end of overwriting check
fi
if test -f sample.news.biblio -a "${1}" != "-c" ; then
echo shar: Will not over-write existing file \"sample.news.biblio\"
else
echo shar: Extracting \"sample.news.biblio\" \(196 characters\)
sed "s/^X//" >sample.news.biblio <<'END_OF_sample.news.biblio'
X# emv's .news.new-list favorite file
X# works with fixnewsrc (a perl script which is cool)
X# try to find bibliographic stuff for pbs inc
X(/librar/)
X(/pacs-l/)
X(/book/)
X(/biblio/)
X(/text/)
X(/tex/)
X
END_OF_sample.news.biblio
if test 196 -ne `wc -c <sample.news.biblio`; then
echo shar: \"sample.news.biblio\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f sample.news.favorite -a "${1}" != "-c" ; then
echo shar: Will not over-write existing file \"sample.news.favorite\"
else
echo shar: Extracting \"sample.news.favorite\" \(867 characters\)
sed "s/^X//" >sample.news.favorite <<'END_OF_sample.news.favorite'
X# ckd's .news.favorite file ; -*- Fundamental -*-
X#
X# (perl expr) to wildcard, or groupname to not do so
Xcontrol # do the icky newsadmin stuff first
Xjunk
X(/eff\./ && (!/^eff\.mail\./)) # then local and comp.org.eff
X(/^eff\.mail\./) # then the mailing lists
X
X# now the system admin stuff
X(/security/)
X(/admin/)
X(/archives/)
X(/^ddn\./)
X(/announce/)
X
X# regional hierarchies
X(/^ne\./)
X(/^mit\./)
X(/^athena\./)
X
X# stuff I want to see
X(/irc/)
X(/acad-freedom/)
X(/privacy/)
X
X# more newsadmin stuff, but more heat than light
X(/^news\./)
X(/config/)
X
X# gotta get my fix
Xcomp.lang.perl
X
X# look for useful source code
X(/sources/)
X
X# support the mac & sun
X(/sun/)
X(/mac[.!:]/)
X
X# have fun
Xclari.feature.dave_barry
X
X# wind it up with the technodweeb groups
X(/^gnu\./)
X(/^comp\./)
X(/^sci\./)
X
X# everything else falls down to the end.
END_OF_sample.news.favorite
if test 867 -ne `wc -c <sample.news.favorite`; then
echo shar: \"sample.news.favorite\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f sample.news.new-list -a "${1}" != "-c" ; then
echo shar: Will not over-write existing file \"sample.news.new-list\"
else
echo shar: Extracting \"sample.news.new-list\" \(280 characters\)
sed "s/^X//" >sample.news.new-list <<'END_OF_sample.news.new-list'
X# emv's .news.new-list favorite file
X# works with fixnewsrc (a perl script which is cool)
X# try to find new mailing lists
Xcontrol # do the icky newsadmin stuff first
Xjunk
Xbit.listserv.new-list
Xnews.announce.newgroups
X(/group/)
X(/config/)
X(/announce/)
X
X
END_OF_sample.news.new-list
if test 280 -ne `wc -c <sample.news.new-list`; then
echo shar: \"sample.news.new-list\" unpacked with wrong size!
fi
# end of overwriting check
fi
echo shar: End of shell archive.
exit 0
--
Christopher Davis <ckd@eff.org> | WEIRD QUOTES OF THE WEEK:
System Manager & Postmaster | "Carpe grepem."
Electronic Frontier Foundation | "Seize the WAIS?"
+1 617 864 0665 NIC: [CKD1] | -- two overworked technodweebs
Re: Wanted: SIMPLE .newsrc sorter
Author: Ian G Batten
Date: Thu, 26 Sep 1991 08:50
Date: Thu, 26 Sep 1991 08:50
53 lines
1705 bytes
1705 bytes
In article <36690@hydra.gatech.EDU> gt4824a@prism.gatech.EDU (Paul Beker) writes:
> I am looking for some simple way to sort my .newsrc, without having to
Mine was a quick and dirty perl script. The first I wrote, I would
claim in my defense. use it as ``newsorder < .newsrc > new-newsrc''.
#!/usr/local/bin/perl
@lines = <>;
while (<DATA>)
{
chop;
next if /^#/ || /^$/;
$pat = $_;
%mark = ();
print join ("", sort grep (eval $pat && ++$mark{$_}, @lines));
@lines = grep (!$mark{$_}, @lines);
}
print join ("", @lines);
__END__
/^se.*:/
/^fulcrum.*:/
/^talk.politics.soviet:/
/^midlands.*:/
/^bt.*:/
/^uk.*:/ && !/politics/
/^eunet.*:/ && !/politics/
/^news.*:/
/^talk.bizarre:/
/^talk.origins:/
/^comp.unix.*:/
/^comp.lang.perl:/
/^comp.*:/ && !/^comp.lang.c:/ && !/^comp.arch:/
/religion.*:/
/^talk.*:/
/^gnu.*:/
/^misc.*:/
/^rec.audio.*:/
/^rec.music.*:/
/^rec.arts.*:/
/^rec.*:/
/politics.*:/
/^sci.*:/
/^soc.*:/ && !/men:/
/^alt.*:/
/^soc.*:/
/^comp.arch:/
/^comp.lang.*:/
/:/
/!/
Re: Wanted: SIMPLE .newsrc sorter
Author: Chip Salzenberg
Date: Fri, 27 Sep 1991 19:17
Date: Fri, 27 Sep 1991 19:17
54 lines
2135 bytes
2135 bytes
Here's our local Perl script: "sortnewsrc".
===========================================================================
eval 'exec /bin/perl -S $0 ${1+"$@"}'
if 0;
# $Id: sortnewsrc,v 1.1 1990/10/03 11:19:37 news Exp news $
#
# Sort a user's .newsrc file.
#
@H = ( "general", "tct", "tba", "fl",
"news", "comp",
"gnu", "biz", "pubnet",
"sci", "rec", "soc", "talk", "misc",
"alt" );
$x = "a";
foreach $h (@H) {
$X{$h} = $x;
++$x;
}
$X{"other"} = $x;
chdir $ENV{"HOME"} || die "can't change to home directory: $!\n";
open(RC, ".newsrc") || die "can't open .newsrc: $!\n";
while (<RC>) {
chop;
next unless ($group, $rest) = /^([^:!]+)([:!].*)/;
($hier) = split(/\./, $group);
$x = $X{$hier} || $X{"other"};
push(@G, $x . "*" . $group . "*" . $rest);
}
close(RC);
@G = sort @G;
open(NRC, ">.newnewsrc") || die "can't create .newnewsrc: $!\n";
foreach $g (@G) {
($a, $b, $c) = split(/\*/, $g, 3);
print NRC $b, $c, "\n";
}
close(NRC);
unlink(".oldnewsrc");
rename(".newsrc", ".oldnewsrc") || die "can't rename .newsrc: $!\n";
rename(".newnewsrc", ".newsrc") || die "can't rename .newnewsrc: $!\n";
===========================================================================
--
Chip Salzenberg at Teltronics/TCT <chip@tct.com>, <73717.366@compuserve.com>
"There is no such thing as a bogus newsgroup in 'alt'."
-- Bruce "Every Newsgroup Sacred" Becker
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads