Find all files in the /etc directory with a name ending in .conf, and for each of those files, execute a command to replace any line beginning with "password" with "foobar:".
find /etc -iname '*.conf' -exec sed -i '/^password/s/[^:]*:/foobar:/g' {} \;