🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Sven Guckes Thu, 18 Feb 1993 20:16
Re: +./~%=N(sne) regexp
#3771
Author: Sven Guckes
Date: Thu, 18 Feb 1993 20:16
140 lines
5866 bytes
To all users of NN:
There is a newsgroup for just this very news reader! It's called:

			news.software.nn

There is also a FAQ available in the newsgroup where most FAQs are
crossposted to:
			news.answers


..

OK, on with the show:

cathy@techbook.com (Cathy Gaupo) writes:

>I use NN and I haven't figured out those symbols.
>Shift G produces the first half.

Just to clarify:
'G' is the "Goto" command which lets you jump to other newsgroups or
folders.

When you use the Goto command then you are prompted with this:

	Group or Folder (+./~ %=sneN)

Typing any of the symbols "+./~ %" (note the space) decides which newsgroup
or folder you will select.  Typing any of the symbols "=sneN" will
decide on the kind of selection you will do on the other newsgroup (or folder).

>I imagine that sne and respectively, subject, name or either
>But as for the rest- what are they and how do I use them.

All these symbols are described together with the Goto command in the manual.
You can read the manual with the UNIX manual command "man" like this:

		man nn

But nn has a very nice feature built in that allows reading the manual
like a newsgroup (or rather a folder):

		:man

Just type it and you should drop into "<level 2>" reading the manual.
It should look similar to this:

===== screenshot ===== screenshot ===== screenshot ===== screenshot =====
Folder: /usr/spool/news/nn/help/Manual

a nn       Name
b nn       Synopsis
c nn       Description
d nn       Frequently used options
e nn       Command input
f nn       Basic commands
g nn       Selection mode
h nn       Article attributes
i nn       Selection mode commands
j nn       The junk-articles and leave-next commands
k nn       Reading mode commands
l nn       Previewing articles in selection mode
m nn       Saving articles
n nn       Folder maintenance
o nn       File name expansion
p nn       File and group name completion
q nn       Posting and responding to articles
r nn       Jumping to other groups
s nn       Automatic kill and selection

-- SELECT -- help:? -----Top 12%-----<level 2>--

===== screenshot ===== screenshot ===== screenshot ===== screenshot =====

If you want to read the explanation for the Goto command, just select
the "article" with the subject "Jumping to other groups".  So according
to the above screenshot you would have to select the article "r".
It all in there, trust me. :-)

>That also goes for the regexp.  I haven't figured out any of them.

Regular expressions is basically a description for a set of strings.
Rules to build them take a day to learn and a lifetime to master.
They are explained with the manual to the UNIX command "ex".
So "man ex" should give you some clues about this.

The easiest things to comprehend are probably these:
"." (dot)    stands for any character.
"^" (caret)  stands for the beginning of a line.
"$" (dollar) stands for the ending    of a line.
"*" (asterisk) stands for any number of the previous character (or group).

Try this:
Goto the newsgroup "news.answers" with 'G'.
When prompted, tell nn that you want to read all articles with 'a'.
Then select all articles by subject (with '=').
Now you have to enter the search string. Use this one:
	"^nn "
This will search for the beginning of a line, followed by two 'n' and a space.
I'm pretty sure that when you start reading with 'Z' that you will be
reading the NN FAQ. :-)

I suggest that everyone should have a little knowledge of regular expressions
(abbreviated as "regexpr"), as they are used with a lot of powerful tools,
e.g. the grep commands (grep, egrep, fgrep) and with the most (in)famous
text editor known to mankind - vi !
And it is used with awk, gawk, nawk, sed, perl, and other strange things.

>I would like to be able to mark articles as read and not see them again
>in NN, is that possible?

That's where the "killfile" comes in.
It is basically a plain text file that serves as a database.
Each entry (=line) contains the information for automatic
selection/killing of a subject/name for a specific group/all groups
for a specific time/forever.
The strings to look for can be given as regexpr.

>After I have read the article, I would prefer not to see it as a possibility
>to choose from.

That's what NN was written for: NOT to read NEWS (again).
NN will remember which articles you have read, so it won't present them
to you again.

>Can I mark an entire newsgroup as read so the next time that I'm in that
>newsgroup- I only have a few articles to catch up on?

The quick way to exit reading a newsgroup is 'X' which stands for "Exit".
If you haven't selected any articles for reading then it will mark all
articles in that group as read and will proceed with the next group.

If you have any more question, please post to "news.software.nn".
But I strongly recommend to read the FAQ, too. :-)

>I can be reached at cathy@techbook.com

Well, that's in the header, anyway.

Sven@news.newusers.questions :)
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