This question already has an answer here:
- Have xargs use alias instead of binary 5 answers
This way I get colored output:
grep class testdata.py
Since this gets set in my .bashrc:
alias grep='grep -n --color'
But if I search like this, I see no colored output:
find -name '*.py' | xargs grep "class"
Has someone an idea how to enable colored output of
grep if called via
find ...| xargs grep?