View Full Version : Grep

19th April 2006, 04:00 PM
Hi !
With the command line :
env | GREP myvar
I can find the content of the only variable: myvar, but if i'd like to know all others variables contents except the variable myvar, how can i do ?
So somethings like <> of myvar for example !
Is it possible ?
Many thanks !

19th April 2006, 04:32 PM
env |grep -v myvar .... it looks like I am your personal tutor today :D Okay, I'll leave next one to someone else...

P.S. man will give you a wealth of info about any command... just type the command after man, as in

man grep

If you don't know the command name, use apropos. For instance,

apropos "print lines matching a pattern"

will return
egrep [grep] (1) - print lines matching a pattern
fgrep [grep] (1) - print lines matching a pattern

19th April 2006, 04:37 PM
heheeh Many thanks !!