linux - "Find" command: highlight matching literal parts -


i use find lot, using -name or -iname parameters.

i highlight matching part in files finds (like grep does).

for example: find . -iname "*foo*" highlight instances foo

i know pipe grep i'd rather not write 2 commands each time.

is there simple way it?

eg. this:

find /home/ -type f | grep -i --color=always *.cpp 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -