Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jindraj
· 6y ago · 0 comments
Have you thought about environment variable GREP_OPTIONS?
https://www.gnu.org/software/grep/manual/grep.html#Environme...
You can define it at the beginning of the script.
Comments
[–]
yellowapple
6y ago
> As this causes problems when writing portable scripts, this feature will be removed in a future release of grep, and grep warns if it is used. Please use an alias or script instead.