Aliasing grep in find’s -exec option

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?

Go to Source
Author: Enrico Maria De Angelis

Is there any method to check options table existence?

I am writing a method that is responsible for creating table, and it depends on an option.

When I run this on a fresh database, it throws error that options table does not exists. Is there any prepared method in wordpress for checking of options table existence?

I am using following code for checking a specific option and then creating required table:

if (!get_option('my_specific_key', 0)) {

   ... running sqls here

Go to Source