Reset Grep options GREP_OPTIONS shell variable

bash
shell

#1

Howdy,

I was working through a grep tutorial and it had me do this:
export GREP_OPTIONS=’–color=auto’ GREP_COLOR=‘100;8’

How does one reset this change?

cheers,


#2

It appears that closing terminal and restarting it has reset itself. Would be nice to know how to revert the changes though…


#3

Try unset command that unsets values and attributes of shell variables and functions:

unset GREP_OPTIONS
echo "$GREP_OPTIONS"

For more info type:

help unset

or see my FAQ “How to undefine and unset a bash environment variable on Linux or Unix”.


#4

Awesome! thinks for the info.