Find all files with the extension ".log" in the "/var/log" directory and execute the command "sed -i -e 's/error/correct/g' {}" on each of them.
find /var/log -iname '*.log' -exec sed -i -e 's/error/correct/g' {} \;