"GREP_COLORS=" cannot work so long as preceded by sudo
Why "GREP_COLORS=" set cannot work if grep family, i.e. more actually pcre2grep, preceded by sudo ?
though fact is other Linux, i.e. MX, simply go working please help out to work here too |
Most probably, you have defined an alias somewhere in your shell startup files for regular user. Something along the lines
Code:
alias pcre2grep='pcre2grep --color=auto' Code:
alias Code:
sudo alias This is actually the case where cat abuse otherwise known as UUOC might make sense: Code:
sudo cat file_accessible_only_by_root|pcre2grep RE Code:
sudo pcre2grep --color RE file_accessible_only_by_root |
EXCELLENT
Thanks, more importantly must God reward you.. |
All times are GMT -5. The time now is 06:33 AM. |