NNGREPSection: User Commands (1)
Updated: Release 6.6
Index Return to Main Contents
NAMEnngrep - grep for news group names (nn)
SYNOPSISnngrep [ -ainprsu ] [ -l ] [ pattern ]
DESCRIPTIONnngrep can print various selections of the available news groups.
Without options, nngrep will list all currently subscribed newsgroups whose name matches any of the specified patterns. If no pattern is specified, all subscribed groups will be listed.
The selection of news groups against which the patterns are matches, and subsequently printed by nngrep can be limited or expanded using the following command line options and arguments:
- Use both subscribed and unsubscribed groups. Overrides the -u option.
- Use only ignored groups, i.e. which are not in the presentation sequence.
- Use only new groups. Notice that nn considers a group to be new until you have read at least one article in the group, or you have unsubscribed to the group. This means that even reasonable active news groups may remain "new" for quite some time if it only contains articles which are cross-posted to other groups which occur earlier in your presentation sequence.
- Use only groups with unread (pending) articles.
- Use only read groups, i.e. without unread articles.
- Use only groups which are in the presentation sequence.
- Use only unsubscribed groups.
These options can be combined if they don't logically exclude each other.
For example, to get the names of all "source" groups, you can use the
LONG LISTINGA long listing of the matched groups can be requested with the -l option. It will include the following information:
SUBSCR Specifies whether the group is subscribed or not (yes/no).
NEW Specifies whether the group is new or not (yes/no).
UNREAD Shows the number of unread articles in the group (if any).
SEQUENCE Shows the group's index in the presentation sequence.
GROUP The name of the group.
FILES~/.newsrc The record of read articles
~/.nn/init The presentation sequence
SEE ALSOnn(1), nncheck(1), nngoback(1), nngrab(1), nnpost(1), nntidy(1)
nnadmin(1M), nnusage(1M), nnmaster(8)
AUTHORKim F. Storm, Texas Instruments A/S, Denmark