# phpman > man > NNGREP(1)

[NNGREP(1)](https://www.chedong.com/phpMan.php/man/NNGREP/1/markdown)                              General Commands Manual                             [NNGREP(1)](https://www.chedong.com/phpMan.php/man/NNGREP/1/markdown)



## NAME
       nngrep - grep for news group names (nn)

## SYNOPSIS
       **nngrep** [ -**ainprsu** ] [ -**l** ] [ _pattern_ ]

## DESCRIPTION
       _nngrep_ 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:

### -a -u

### -i

### -n
              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.

### -p

### -r

### -s

### -u

       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 command
            nngrep source

       You can use this to read a specific subset of news groups with _nn_; for example
            nn `nngrep -sp source`

## LONG LISTING
       A  _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 ALSO
       [nn(1)](https://www.chedong.com/phpMan.php/man/nn/1/markdown), [nncheck(1)](https://www.chedong.com/phpMan.php/man/nncheck/1/markdown), [nngoback(1)](https://www.chedong.com/phpMan.php/man/nngoback/1/markdown), [nngrab(1)](https://www.chedong.com/phpMan.php/man/nngrab/1/markdown), [nnpost(1)](https://www.chedong.com/phpMan.php/man/nnpost/1/markdown), [nntidy(1)](https://www.chedong.com/phpMan.php/man/nntidy/1/markdown)
       [nnadmin(1M)](https://www.chedong.com/phpMan.php/man/nnadmin/1M/markdown), [nnusage(1M)](https://www.chedong.com/phpMan.php/man/nnusage/1M/markdown), [nnmaster(8)](https://www.chedong.com/phpMan.php/man/nnmaster/8/markdown)

## AUTHOR
       Kim F. Storm, Texas Instruments A/S, Denmark
       E-mail: <storm@texas.dk>




4th Berkeley Distribution                    Release 6.6                                   [NNGREP(1)](https://www.chedong.com/phpMan.php/man/NNGREP/1/markdown)
