found bug
Karl Riauba <[email protected]> Wed, 22 Aug 2018 16:32:03 -0700
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <CAMy0ACN5Ut_NiD7y5WbONKVEoMuGtn5fX5Ji9ct+XKO+yirWMw@mail.gmail.com> |
Hi, I think I found egrep bug. No tabs in example file or in variable. 10.193.132.65:9102 should suppose to be filtered out, but it doesn't. Thanks $ echo ===$egrep=== === 10.193.132.65:9102 | 10.193.132.65:111 | 10.193.132.65:4560 | 10.193.132.65:2800 | 10.193.132.65:4369 | 10.193.132.65:22 | 10.193.132.65:8888 | 10.193.132.65:8088 | 10.193.132.65:8089 | 10.193.132.65:38012 | 10.193.132.65:8126 | 10.193.132.65:5280 | 10.193.132.65:39073 | 10.193.132.65:8834 | 10.193.132.65:2850 | 10.193.132.65:41187 | 10.193.132.65:5285 | 10.193.132.65:9125 | 10.193.132.65:5222 | 10.193.132.65:5287 | 10.193.132.65:5223 | 10.193.132.65:35848 === [email protected]:~ $ cat egrep_bug tcp 0 0 0.0.0.0:9102 0.0.0.0:* LISTEN 12160/statsd_export tcp 0 0 0.0.0.0:9125 0.0.0.0:* LISTEN 12160/statsd_export tcp 0 0 10.193.132.65:9102 10.196.128.42:46852 ESTABLISHED 12160/statsd_export udp 0 0 0.0.0.0:9125 0.0.0.0:* 12160/statsd_export unix 3 [ ] STREAM CONNECTED 47777 12160/statsd_export [email protected]:~ $ cat egrep_bug | egrep -v "$egrep" tcp 0 0 0.0.0.0:9102 0.0.0.0:* LISTEN 12160/statsd_export tcp 0 0 0.0.0.0:9125 0.0.0.0:* LISTEN 12160/statsd_export tcp 0 0 10.193.132.65:9102 10.196.128.42:46852 ESTABLISHED 12160/statsd_export udp 0 0 0.0.0.0:9125 0.0.0.0:* 12160/statsd_export unix 3 [ ] STREAM CONNECTED 47777 12160/statsd_export [email protected]:~ $