Reset Grep options GREP_OPTIONS shell variable

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,

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

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”.

Awesome! thinks for the info.


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki