Glam Prestige Journal

Bright entertainment trends with youth appeal.

I'm using the following egrep invocation as a filter for an ant build:

egrep '\[.*\]|BUILD|time\:'

The build.xml file has a huge number of empty or unimportant targets that I'm trying to filter out. However, any of them that have "build" in the name are still showing up in the output:

s.properties.build.mode.default:
s.properties.build.mode: [jar] Building jar: <my jar path>.jar [jar] JARs are never empty, they contain at least a manifest file
build.latest.execute:

(Context: This is on RHEL5.)

Why is this regex matching in a case insensitive manner?

In response to comments:

user@host ~> echo $GREP_OPTIONS
user@host ~> type egrep
egrep is an alias for grep -E
user@host ~> alias egrep
egrep='grep -E'
4

1 Answer

Check that your grep or egrep isn't aliased to use the -i option.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy