Article View: news.software.nntp
Article #80076Re: docheckgroups -u throws error regrding egrep
From: Michael Grimm
Date: Sun, 01 Feb 2009 19:46
Date: Sun, 01 Feb 2009 19:46
105 lines
5619 bytes
5619 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> wrote:
>> docheckgroups throws an error if I'm trying to update the newsgroups
>> file (-u):
>
> No error without the "-u" flag?
Yes, no error. I'll get the very same output you get including "-u'.
But, if I understand http://www.eyrie.org/~eagle/software/inn/docs/docheckgroups.html
understand correctly,'-u' shouldn't output what to do, but applies it
instead. Correct or misunderstanding of mine?
>> grep local.odd active newsgroups
>
> Note that "docheckgroups -u" will not add local.odd to your active
> file. It is "docheckgroups -u | mod-active" or "docheckgroups -u |
> sh".
Yes, I know. But 'docheckgroup -u' dies before piping to mod-active.
Therefore I concentrated on that command.
> What is the result of "egrep --help"?
Sorry, it's lengthy:
#v+
news|news> egrep --help
Usage: egrep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: egrep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
-E, --extended-regexp PATTERN is an extended regular expression
-F, --fixed-strings PATTERN is a set of newline-separated
strings
-G, --basic-regexp PATTERN is a basic regular expression
-P, --perl-regexp PATTERN is a Perl regular expression
-e, --regexp=PATTERN use PATTERN as a regular expression
-z, --null-data a data line ends in 0 byte, not newline
Miscellaneous:
-s, --no-messages suppress error messages
-v, --invert-match select non-matching lines
-V, --version print version information and exit
--help display this help and exit
-J, --bz2decompress decompress bzip2'ed input before searching
-Z, --decompress decompress input before searching
(HAVE_LIBZ=1)
--mmap use memory-mapped input if possible
Output control:
-m, --max-count=NUM stop after NUM matches
-b, --byte-offset print the byte offset with output lines
-n, --line-number print line number with output lines
--line-buffered flush output on every line
-H, --with-filename print the filename for each match
-h, --no-filename suppress the prefixing filename on output
--label=LABEL print LABEL as filename for standard input
-o, --only-matching show only the part of a line matching
PATTERN
-q, --quiet, --silent suppress all normal output
--binary-files=TYPE assume that binary files are TYPE
TYPE is 'binary', 'text', or 'without-match'
-a, --text equivalent to --binary-files=text
-I equivalent to --binary-files=without-match
-d, --directories=ACTION how to handle directories
ACTION is 'read', 'recurse', or 'skip'
-D, --devices=ACTION how to handle devices, FIFOs and sockets
ACTION is 'read' or 'skip'
-R, -r, --recursive equivalent to --directories=recurse
--include=PATTERN files that match PATTERN will be examined
--exclude=PATTERN files that match PATTERN will be skipped.
--exclude-from=FILE files that match PATTERN in FILE will be
skipped.
-L, --files-without-match only print FILE names containing no match
-l, --files-with-matches only print FILE names containing matches
-c, --count only print a count of matching lines per
FILE
--null print 0 byte after FILE name
Context control:
-B, --before-context=NUM print NUM lines of leading context
-A, --after-context=NUM print NUM lines of trailing context
-C, --context=NUM print NUM lines of output context
-NUM same as --context=NUM
--color[=WHEN],
--colour[=WHEN] use markers to distinguish the matching
string
WHEN may be `always', `never' or `auto'.
-U, --binary do not strip CR characters at EOL (MSDOS)
-u, --unix-byte-offsets report offsets as if CRs were not there
(MSDOS)
`egrep' means `grep -E'. `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input. If less than
two FILEs given, assume -h. Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
#v-
Regards,
Michael
--
to let
Technical Details
Message-ID:
<gm4u70$le6$1@de-l.enfer-du-nord.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.unit0.net!de-l.enfer-du-nord.net!not-for-mailReferences:
<gm4h6m$9r3$1@de-l.enfer-du-nord.net> <gm4njb$uj2$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gm4u70$le6$1@de-l.enfer-du-nord.net> Subject: Re: docheckgroups -u throws error regrding egrep Date: Sun, 01 Feb 2009 19:46:40 +0000 From: Michael Grimm <trashcan@odo.in-berlin.de> References: <gm4h6m$9r3$1@de-l.enfer-du-nord.net> <gm4njb$uj2$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.unit0.net!de-l.enfer-du-nord.net!not-for-mail Newsgroups: news.software.nntp Organization: ATK - Alternative Tierklinik links der Einfalt Lines: 105 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: de-l.enfer-du-nord.net eJwFwYkBwEAEBMCW4j3KYdF/CZkxcXI8dXO1s6MpFhTgT7eq60Dk12LAzchGBxVYuq+C9LDZuQiS5GL95vRLM/EZ7ZgfOlobvA== X-Complaints-To: abuse@de-l.enfer-du-nord.net Cancel-Lock: sha1:a0TQmq5/0T1letmzDydIYU3+Iyc= User-Agent: slrn/0.9.9p1/mm/ao (Darwin) Mail-Copies-To: nobody