This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes environment variables in grep command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "environment variables in grep command" Watch "environment variables in grep command" New topic
Author

environment variables in grep command

Minal Silimkar-Urankar
Ranch Hand

Joined: Nov 25, 2007
Posts: 136
In man pages of grep command environment variables are give.
How we can use those environment variables in grep command?
[ April 18, 2008: Message edited by: minal silimkar ]

Minal Silimkar
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149
    
  27

They're used automatically. If you want to override them, you set your own value for the environment variable of interest, grep reads that value and uses it.


An IDE is no substitute for an Intelligent Developer.
Minal Silimkar-Urankar
Ranch Hand

Joined: Nov 25, 2007
Posts: 136
How will I set the environment variables for grep command?
 
wood burning stoves
 
subject: environment variables in grep command
 
It's not a secret anymore!