grep --exclude={*.py,*.md}  -inr "template" *

grep --exclude={*.py,*.md} -rl "template" * | xargs sed -i 's/[Tt]emplate/han/g'

posted by citadel