wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
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: 15962
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
How will I set the environment variables for grep command?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: environment variables in grep command
 
Similar Threads
How to ensure Weblogic is running or not with Linux command
Search tool to search all class files
struts2: Generating list of localisation keys?
File find utility?
Classpath Question