Edit of *.conf files changing all foo to bar (and backup original)

perl

perl -p -i.orig -e 's/\bfoo\b/bar/g' *.conf
click the source code to copy install perl on any operating system with command-not-found.com