I have these aliases in my ~/.bashrc
alias grep='grep --color=auto -H'
alias fgrep='fgrep --color=auto -H'
alias egrep='egrep --color=auto -H'
but they have no effect when I run find ... -exec grep ...
, and I always have to provide those options manually.
Is there a way to tell find
to rely on aliases in the -exec
option's arguments? I'm thinking of configuration files, rather than other aliases.
Would it be unsafe in some way?