bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep 2.5d -f option problem


From: Greg Louis
Subject: grep 2.5d -f option problem
Date: Tue, 6 Mar 2001 10:17:59 -0500

  There is apparently some sort of a problem in grep 2.5d with the -f
  option.  In the sequence of commands shown below, logcheck.ignore
  is a file containing a series of regexps, and version 2.5b correctly
  picks out the non-matching lines with the i, v and f options as
  shown.  Version 2.5d, however, finds no matches and outputs the
  entire file.  Both were compiled with the same options on the same
  Linux machine with egcs-2.91.66 and linked against glibc-2.2.

# egrep --version; egrep -ivf /dyna/usr/local/etc/logcheck.ignore \
> /dyna/var/log/messages | wc -l
egrep (GNU grep) 2.5b

Copyright 1988, 1992-1999, 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

    313
# ./egrep --version; ./egrep -ivf /dyna/usr/local/etc/logcheck.ignore
/dyna/var/log/messages | wc -l
egrep (GNU grep) 2.5d

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

   1075
# wc -l /dyna/var/log/messages
   1075 /dyna/var/log/messages


-- 
| G r e g  L o u i s          | gpg public key:      |
|   http://www.bgl.nu/~glouis |   finger address@hidden |

Attachment: pgpcc08iRyH5P.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]