tlt@ihlpl.UUCP (Todd) (03/18/86)
Here is a short shell script that allows the user to read/scan a lot of netnews very quickly. It maps the ' character to a one keystroke command that marks the articles you want to read. When you are finished marking exit vi by your favorite method of writing the file and quitting. The ' key now becomes the method to go to the next article. It's a quicky that allows me to wade through all the netnews garbage in a few minutes. Installation directions: 1. Cut on the dotted lines and put contents into a file called "qn" (quick news). 2. Find where netnews articles are kept on your system and change the appropriate line (line 9). 3. Make the file "qn" executable. 4. Enjoy. -----------------------------cut here----------------------- readnews -l >/tmp/hd.$$ EXINIT="map ' I* " export EXINIT vi /tmp/hd.$$ EXINIT="map ' ZZ" grep "^\*" /tmp/hd.$$ | sed -e " s/ .*// s/\./\//g s/^./view \/put\/the\/full\/path\/of\/the\/netnews\/articles\/here\// " >/tmp/rd.$$ sh /tmp/rd.$$ rm /tmp/hd.$$ /tmp/rd.$$ echo "Update .newsrc? (y/n)\c" read x if [ "y" = "$x" ] then readnews -p >/dev/null fi -----------------------------cut here----------------------- DISCLAIMER It uses vi so if you don't like vi don't use it. It probably won't work with csh. I don't know because I use ksh. Try it - you might like it. If you don't like it - write your own. (I would be interested in mutants)
tlt@ihlpl.UUCP (Todd) (03/19/86)
This is a revised streamlined version that is easier to use. Basically the same description as before: Here is a short shell script that allows the user to read/scan a lot of netnews very quickly. It maps the ' character to a one keystroke command that goes immediately to the article you want to read. When you have read the article exit vi by your favorite method and you will be back looking at the list of news articles. Basically the same installation directions as before: 1. Cut on the dotted lines and put contents into a file called "qn" (quick news). 2. Find where netnews articles are kept on your system and change the appropriate line (line 1). 3. Make the file "qn" executable. 4. Enjoy. -----------------------------cut here----------------------- NEWSPATH=/where/the/news/is/ export NEWSPATH EXINIT="map K :s/ .*// :s.^.view $NEWSPATH. :s/\./\//g map ' K:.w! /tmp/rd.$$ :!sh /tmp/rd.$$ uj" export EXINIT readnews -l >/tmp/hd.$$ vi /tmp/hd.$$ rm /tmp/hd.$$ /tmp/rd.$$ echo "Update .newsrc? (y/n)\c" read x if [ "y" = "$x" ] then readnews -p >/dev/null fi -----------------------------cut here----------------------- The same DISCLAIMER as before It uses vi so if you don't like vi don't use it. It probably won't work with csh. I don't know because I use ksh. Try it - you might like it. If you don't like it - write your own. (I would be interested in mutants) Already I have a mutant of my own!!!!! seek - locate - exterminate Terry Todd @ ihnp4!ihlpl!tlt